3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CarCollection {} class CarService { public function getCars(&$collection) { $collection = new CarCollection("foo"); } } $service = new CarService(); $collection = new StdClass; echo get_class($collection) . PHP_EOL; $service->getCars($collection); echo get_class($collection) . PHP_EOL;

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.5.30.0120.00520.11
8.5.20.0100.00720.11
8.5.10.0100.00720.05
8.5.00.0040.00520.06
8.4.180.0130.00919.70
8.4.170.0130.00823.84
8.4.160.0120.01023.81
8.4.150.0070.00516.94
8.4.140.0130.00817.66
8.4.130.0150.00517.82
8.4.120.0070.00120.46
8.4.110.0150.00418.75
8.4.100.0130.00717.73
8.4.90.0140.00620.65
8.4.80.0040.00418.88
8.4.70.0100.00920.66
8.4.60.0040.00420.66
8.4.50.0080.00318.39
8.4.40.0130.00619.36
8.4.30.0130.00619.29
8.4.20.0170.00319.21
8.4.10.0060.00319.56
8.3.300.0150.00922.77
8.3.290.0120.01020.91
8.3.280.0130.00818.39
8.3.270.0150.00516.66
8.3.260.0130.00716.64
8.3.250.0090.00819.00
8.3.240.0120.00716.27
8.3.230.0110.00816.65
8.3.220.0120.00718.86
8.3.210.0070.00116.49
8.3.200.0040.00416.39
8.3.190.0050.00416.97
8.3.180.0090.01016.85
8.3.170.0070.01016.91
8.3.160.0140.00318.25
8.3.150.0120.00616.54
8.3.140.0070.00016.43
8.3.130.0140.00018.24
8.3.120.0030.00620.59
8.3.110.0100.00020.94
8.3.100.0110.00024.06
8.3.90.0070.00426.77
8.3.80.0060.00319.36
8.3.70.0140.00718.36
8.3.60.0140.00016.63
8.3.50.0120.00621.08
8.3.40.0080.00818.65
8.3.30.0040.01118.57
8.3.20.0080.00022.10
8.3.10.0000.00820.21
8.3.00.0040.00420.46
8.2.300.0120.00818.01
8.2.290.0140.00318.27
8.2.280.0100.01018.36
8.2.270.0120.00617.09
8.2.260.0030.01018.98
8.2.250.0060.01218.71
8.2.240.0040.00817.16
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0040.01116.75
8.2.180.0150.00618.16
8.2.170.0130.00618.95
8.2.160.0110.00322.96
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00022.25
8.2.120.0070.00026.35
8.2.110.0050.00519.39
8.2.100.0120.00019.26
8.2.90.0040.00419.62
8.2.80.0030.00618.04
8.2.70.0040.00418.03
8.2.60.0050.00317.93
8.2.50.0040.00419.18
8.2.40.0070.00020.42
8.2.30.0000.00719.13
8.2.20.0040.00417.94
8.2.10.0030.00518.01
8.2.00.0040.00417.68
8.1.340.0140.00519.98
8.1.330.0140.00416.38
8.1.320.0070.00717.99
8.1.310.0050.00318.25
8.1.300.0060.01017.96
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0060.00922.13
8.1.260.0000.00728.09
8.1.250.0000.00828.09
8.1.240.0110.00720.68
8.1.230.0110.00019.11
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00717.25
8.1.190.0050.00517.23
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0050.00222.07
8.1.150.0040.00418.84
8.1.140.0040.00419.57
8.1.130.0000.00717.63
8.1.120.0040.00417.48
8.1.110.0050.00317.35
8.1.100.0040.00417.43
8.1.90.0040.00417.49
8.1.80.0000.00817.45
8.1.70.0040.00417.52
8.1.60.0030.00517.55
8.1.50.0030.00517.57
8.1.40.0060.00317.39
8.1.30.0080.00017.67
8.1.20.0060.00317.50
8.1.10.0070.00017.57
8.1.00.0000.00817.54
8.0.300.0040.00420.02
8.0.290.0050.00316.75
8.0.280.0030.00318.42
8.0.270.0050.00216.85
8.0.260.0000.00617.39
8.0.250.0070.00016.88
8.0.240.0000.00716.96
8.0.230.0030.00316.99
8.0.220.0070.00016.77
8.0.210.0000.00716.80
8.0.200.0030.00316.98
8.0.190.0050.00316.95
8.0.180.0030.00516.93
8.0.170.0040.00416.91
8.0.160.0050.00216.86
8.0.150.0030.00316.75
8.0.140.0000.00716.82
8.0.130.0030.00313.37
8.0.120.0040.00416.89
8.0.110.0040.00416.81
8.0.100.0070.00017.01
8.0.90.0040.00416.86
8.0.80.0090.00616.92
8.0.70.0070.00216.89
8.0.60.0050.00316.66
8.0.50.0000.00716.95
8.0.30.0050.01517.11
8.0.20.0100.01117.40
8.0.10.0000.00716.85
8.0.00.0210.00316.98
7.4.330.0000.00515.09
7.4.320.0080.00016.36
7.4.300.0000.00616.61
7.4.290.0000.00616.56
7.4.280.0040.00416.60
7.4.270.0030.00316.61
7.4.260.0070.00016.50
7.4.250.0040.00316.58
7.4.240.0050.00316.25
7.4.230.0040.00416.63
7.4.220.0140.00416.70
7.4.210.0130.00616.47
7.4.200.0030.00416.52
7.4.160.0040.01216.48
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0130.00516.43
7.4.120.0060.01116.45
7.4.110.0080.00816.41
7.4.100.0070.01016.48
7.4.90.0090.00916.39
7.4.80.0120.00919.39
7.4.70.0130.00416.47
7.4.60.0090.00616.59
7.4.50.0030.01416.38
7.4.40.0140.00616.55
7.4.30.0060.01016.46
7.4.10.0000.01515.06
7.4.00.0070.01014.94
7.3.330.0050.00213.39
7.3.320.0030.00313.20
7.3.310.0030.00316.42
7.3.300.0000.00716.22
7.3.290.0060.00716.33
7.3.280.0110.00716.37
7.3.270.0130.01017.40
7.3.260.0120.00916.48
7.3.250.0150.00216.44
7.3.240.0120.00616.37
7.3.230.0080.00816.67
7.3.210.0030.01316.32
7.3.200.0100.00616.48
7.3.190.0070.01616.45
7.3.180.0090.00916.38
7.3.170.0100.01116.67
7.3.160.0110.00616.34
7.3.130.0060.01114.71
7.3.120.0110.00715.05
7.3.110.0130.00614.77
7.3.100.0030.00914.88
7.3.90.0030.01314.87
7.3.80.0060.00314.74
7.3.70.0110.00414.84
7.3.60.0050.00814.60
7.3.50.0030.01114.99
7.3.40.0040.00814.74
7.3.30.0000.00914.54
7.3.20.0100.00716.48
7.3.10.0020.01016.61
7.3.00.0080.00816.51
7.2.330.0070.01016.35
7.2.320.0070.01016.64
7.2.310.0070.01016.78
7.2.300.0090.00616.52
7.2.290.0150.00316.80
7.2.260.0030.01614.86
7.2.250.0120.00615.08
7.2.240.0040.01114.71
7.2.230.0030.01015.25
7.2.220.0140.00715.01
7.2.210.0090.00015.21
7.2.200.0100.00714.97
7.2.190.0030.01215.13
7.2.180.0060.00914.68
7.2.170.0060.00915.07
7.2.160.0070.00715.07
7.2.150.0100.00716.73
7.2.140.0070.01117.00
7.2.130.0010.01216.68
7.2.120.0080.00816.73
7.2.110.0060.01016.77
7.2.100.0040.01016.78
7.2.90.0040.00916.81
7.2.80.0080.00516.67
7.2.70.0040.01216.98
7.2.60.0040.01116.82
7.2.50.0070.00616.98
7.2.40.0010.01016.88
7.2.30.0070.00716.80
7.2.20.0050.00716.82
7.2.10.0050.00916.86
7.2.00.0050.00817.51
7.1.330.0000.00915.53
7.1.320.0100.00715.85
7.1.310.0090.00315.89
7.1.300.0030.01015.67
7.1.290.0080.00415.44
7.1.280.0030.00915.84
7.1.270.0090.00015.68
7.1.260.0030.01415.86
7.1.250.0030.01215.58
7.1.240.0060.00615.47
7.1.230.0020.01415.78
7.1.220.0070.00915.41
7.1.210.0080.00515.65
7.1.200.0060.00615.79
7.1.190.0080.00615.76
7.1.180.0050.00615.70
7.1.170.0020.01115.65
7.1.160.0060.00815.65
7.1.150.0040.01115.71
7.1.140.0030.00815.71
7.1.130.0030.00815.70
7.1.120.0050.00915.81
7.1.110.0030.01115.77
7.1.100.0060.00515.79
7.1.90.0030.00715.76
7.1.80.0010.00915.65
7.1.70.0070.00516.16
7.1.60.0050.00816.21
7.1.50.0060.00615.72
7.1.40.0030.01015.63
7.1.30.0000.01015.67
7.1.20.0030.00915.76
7.1.10.0040.01115.47
7.1.00.0090.02618.00
7.0.330.0030.01015.48
7.0.320.0110.00415.32
7.0.310.0080.00415.39
7.0.300.0050.00715.21
7.0.290.0050.00915.45
7.0.280.0020.01015.48
7.0.270.0070.00315.31
7.0.260.0070.00715.18
7.0.250.0040.01015.44
7.0.240.0060.00615.34
7.0.230.0060.00315.17
7.0.220.0080.00515.49
7.0.210.0090.00415.19
7.0.200.0090.00515.25
7.0.190.0060.00615.26
7.0.180.0040.00915.15
7.0.170.0030.00915.41
7.0.160.0070.00715.41
7.0.150.0050.00515.44
7.0.140.0030.00815.45
7.0.130.0070.00315.49
7.0.120.0030.00815.27
7.0.110.0220.02316.93
7.0.100.0090.02917.00
7.0.90.0130.02617.02
7.0.80.0200.02817.04
7.0.70.0140.03617.07
7.0.60.0120.03516.91
7.0.50.0160.03317.01
7.0.40.0150.03115.63
7.0.30.0180.03315.62
7.0.20.0170.02715.59
7.0.10.0170.02415.61
7.0.00.0170.03115.64
5.6.400.0120.00314.52
5.6.390.0090.00314.56
5.6.380.0030.01014.27
5.6.370.0150.00114.38
5.6.360.0070.00814.38
5.6.350.0060.00814.29
5.6.340.0080.00614.16
5.6.330.0080.00614.43
5.6.320.0050.00614.24
5.6.310.0100.00814.26
5.6.300.0090.00514.15
5.6.290.0100.00114.29
5.6.280.0060.00914.27
5.6.270.0080.00514.37
5.6.260.0080.02516.63
5.6.250.0110.02216.52
5.6.240.0120.02416.58
5.6.230.0110.02716.42
5.6.220.0070.03516.65
5.6.210.0070.02716.43
5.6.200.0080.03116.49
5.6.190.0110.02216.48
5.6.180.0090.02516.55
5.6.170.0040.03216.50
5.6.160.0100.02716.49
5.6.150.0140.02416.49
5.6.140.0040.02716.60
5.6.130.0070.02316.45
5.6.120.0080.02416.48
5.6.110.0090.02216.51
5.6.100.0070.02816.41
5.6.90.0070.03316.54
5.6.80.0100.03016.31
5.6.70.0070.03116.22
5.6.60.0050.02816.21
5.6.50.0110.02116.25
5.6.40.0120.01816.27
5.6.30.0080.02716.13
5.6.20.0120.02016.43
5.6.10.0130.02316.20
5.6.00.0080.02916.24

preferences:
50.11 ms | 1938 KiB | 5 Q