3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { protected $myProperty; public function __construct( $property ) { $this -> myProperty =& $property; } public function getPropertyValue() { return $this -> myProperty; } } for( $i = 0; $i<= 100000; $i++ ) { $myClass = new MyClass( 'Property Value' ); echo $myClass -> getPropertyValue(), "\n"; }

Abusive script

This script was stopped while abusing our resources

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.110.0180.01320.94
8.3.100.0230.00618.46
8.3.90.0350.01426.77
8.3.80.0250.00418.30
8.3.70.0440.00818.18
8.3.60.0440.00618.43
8.3.50.0570.00617.26
8.3.40.0600.00718.59
8.3.30.0380.02218.75
8.3.20.0190.01220.29
8.3.10.0310.00722.00
8.3.00.0230.00921.82
8.2.230.0040.02022.58
8.2.220.0200.00724.06
8.2.210.0220.00626.77
8.2.200.0090.00316.63
8.2.190.0460.01116.58
8.2.180.0430.01818.25
8.2.170.0690.01222.96
8.2.160.0440.00722.16
8.2.150.0290.01524.18
8.2.140.0280.00824.66
8.2.130.0270.00521.11
8.2.120.0160.01226.35
8.2.110.0160.01622.30
8.2.100.0160.00018.22
8.2.90.0030.01719.17
8.2.80.0090.00317.97
8.2.70.0120.00417.63
8.2.60.0120.00817.93
8.2.50.0150.00318.22
8.2.40.0080.00820.49
8.2.30.0190.00021.15
8.2.20.0110.00718.18
8.2.10.0090.01218.20
8.2.00.0140.00318.21
8.1.290.0140.00830.84
8.1.280.0410.01225.92
8.1.270.0290.00020.41
8.1.260.0200.00526.35
8.1.250.0240.00828.09
8.1.240.0270.00322.67
8.1.230.0200.01220.33
8.1.220.0070.01117.79
8.1.210.0040.01318.77
8.1.200.0080.01217.23
8.1.190.0130.00917.35
8.1.180.0160.00618.10
8.1.170.0060.00618.48
8.1.160.0130.00418.90
8.1.150.0140.00520.18
8.1.140.0060.01117.64
8.1.130.0110.00818.95
8.1.120.0070.01117.35
8.1.110.0130.00417.41
8.1.100.0090.01317.48
8.1.90.0120.00417.41
8.1.80.0160.00617.47
8.1.70.0060.01017.49
8.1.60.0140.00517.67
8.1.50.0140.00417.63
8.1.40.0100.01017.61
8.1.30.0120.00617.70
8.1.20.0120.01117.54
8.1.10.0130.00717.66
8.1.00.0110.01117.55
8.0.300.0090.00918.77
8.0.290.0090.00916.58
8.0.280.0130.00418.38
8.0.270.0030.00917.20
8.0.260.0070.00718.38
8.0.250.0110.00616.80
8.0.240.0060.01316.71
8.0.230.0150.00516.78
8.0.220.0160.00516.68
8.0.210.0090.00916.75
8.0.200.0160.00016.80
8.0.190.0140.00516.82
8.0.180.0120.00416.77
8.0.170.0160.00516.67
8.0.160.0090.00916.79
8.0.150.0040.01816.60
8.0.140.0090.00916.60
8.0.130.0080.00813.25
8.0.120.0090.00916.70
8.0.110.0110.00716.80
8.0.100.0130.00416.57
8.0.90.0110.00516.82
8.0.80.0620.02116.71
8.0.70.0110.00516.73
8.0.60.0200.00016.66
8.0.50.0150.00516.81
8.0.30.0530.03617.01
8.0.20.0580.03017.40
8.0.10.0030.00916.92
8.0.00.0330.04316.71
7.4.330.0060.01115.55
7.4.320.0130.00716.42
7.4.300.0090.00916.28
7.4.290.0040.01316.46
7.4.280.0150.00416.47
7.4.270.0000.01116.33
7.4.260.0190.00316.23
7.4.250.0110.01116.33
7.4.240.0100.01016.44
7.4.230.0080.00816.18
7.4.220.0380.04816.41
7.4.210.0280.03916.44
7.4.200.0120.00416.38
7.4.160.0300.02416.18
7.4.150.0630.03217.40
7.4.140.0600.02617.86
7.4.130.0610.02816.52
7.4.120.0530.03116.42
7.4.110.0850.02616.48
7.4.100.0580.03516.48
7.4.90.0430.02716.52
7.4.80.0490.02819.39
7.4.70.0300.02316.52
7.4.60.0570.03716.37
7.4.50.0540.02916.29
7.4.40.0540.01916.34
7.4.30.0410.02716.27
7.4.00.0240.01014.95
7.3.330.0040.01113.29
7.3.320.0040.01313.26
7.3.310.0130.00416.18
7.3.300.0110.00016.06
7.3.290.0030.01116.19
7.3.280.0310.02516.19
7.3.270.0610.01417.40
7.3.260.0540.03116.39
7.3.250.0400.02716.40
7.3.240.0600.02516.25
7.3.230.0460.02616.45
7.3.210.0710.02316.37
7.3.200.0910.02816.21
7.3.190.0470.02716.27
7.3.180.0530.03216.44
7.3.170.0450.02216.20
7.3.160.0470.02116.33
7.2.330.0910.03716.79
7.2.320.0440.02816.47
7.2.310.0380.02616.54
7.2.300.0300.03616.66
7.2.290.0650.05916.44
7.2.60.0180.00917.11
7.1.200.0070.01815.43
7.1.100.0180.00718.12
7.1.90.0210.01217.85
7.1.80.0130.01517.85
7.1.70.0190.00616.79
7.1.60.0320.01035.07
7.1.50.0380.00634.91
7.1.40.0300.01934.47
7.1.30.0440.01134.29
7.1.20.0360.01634.72
7.1.10.2450.01614.53
7.1.00.3760.01914.65
7.0.240.0230.00817.36
7.0.230.0130.01617.33
7.0.220.0130.02317.61
7.0.210.0260.00616.80
7.0.200.0200.01316.55
7.0.190.0150.01516.77
7.0.180.0170.01316.30
7.0.170.0100.02416.18
7.0.160.0140.01716.18
7.0.150.2270.01314.53
7.0.140.2970.01616.21
7.0.130.0160.01216.57
7.0.120.2860.01614.81
7.0.110.0140.02116.36
7.0.100.0150.00916.14
7.0.90.2200.00714.57
7.0.80.0150.01516.30
7.0.70.0040.02416.07
7.0.60.0030.02116.24
7.0.50.3180.01714.47
7.0.40.3820.01014.86
7.0.30.3580.01314.71
7.0.20.0170.00716.30
7.0.10.0200.00716.43
7.0.00.0140.01016.46

preferences:
133.11 ms | 7979 KiB | 5 Q