3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar {} function takeObject(Object $obj) { var_dump(get_class($obj)); } takeObject(new Foo); takeObject(new Bar); takeObject('not an object');

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.130.0060.00316.75
8.3.120.0030.00719.07
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0040.01526.77
8.3.80.0040.00718.43
8.3.70.0150.00716.50
8.3.60.0140.00718.43
8.3.50.0060.01118.08
8.3.40.0110.00418.71
8.3.30.0070.00718.72
8.3.20.0050.00318.98
8.3.10.0030.00523.52
8.3.00.0030.00620.58
8.2.250.0050.00318.36
8.2.240.0060.00319.11
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00416.50
8.2.190.0070.01018.11
8.2.180.0070.01016.75
8.2.170.0180.00418.78
8.2.160.0000.01422.30
8.2.150.0020.00524.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0020.00520.86
8.2.110.0000.01021.11
8.2.100.0090.00317.72
8.2.90.0030.00522.36
8.2.80.0030.00619.11
8.2.70.0060.00317.80
8.2.60.0000.00817.91
8.2.50.0050.00318.10
8.2.40.0060.00319.94
8.2.30.0030.00618.05
8.2.20.0070.00018.28
8.2.10.0000.00817.98
8.2.00.0030.00617.64
8.1.300.0130.00620.42
8.1.290.0100.00018.88
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.33
8.1.230.0040.00820.84
8.1.220.0040.00417.74
8.1.210.0040.00418.81
8.1.200.0040.00417.23
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0050.00318.51
8.1.160.0000.00818.75
8.1.150.0040.00418.67
8.1.140.0040.00422.05
8.1.130.0030.00320.26
8.1.120.0050.00317.23
8.1.110.0000.00717.36
8.1.100.0100.00017.29
8.1.90.0000.00817.32
8.1.80.0040.00417.23
8.1.70.0050.00217.27
8.1.60.0050.00317.51
8.1.50.0000.00817.40
8.1.40.0000.00817.27
8.1.30.0040.00417.54
8.1.20.0050.00217.52
8.1.10.0050.00317.39
8.1.00.0040.00417.32
8.0.300.0070.00019.98
8.0.290.0030.00516.75
8.0.280.0070.00018.36
8.0.270.0040.00416.79
8.0.260.0030.00318.42
8.0.250.0070.00016.88
8.0.240.0050.00316.88
8.0.230.0070.00016.93
8.0.220.0000.00816.77
8.0.210.0040.00416.85
8.0.200.0070.00016.93
8.0.190.0030.00616.91
8.0.180.0000.00716.91
8.0.170.0060.00316.95
8.0.160.0000.00716.78
8.0.150.0030.00316.81
8.0.140.0040.00416.78
8.0.130.0030.00313.24
8.0.120.0040.00416.91
8.0.110.0000.00816.75
8.0.100.0030.00616.91
8.0.90.0000.00816.93
8.0.80.0110.00416.87
8.0.70.0040.00416.87
8.0.60.0050.00216.95
8.0.50.0030.00516.84
8.0.30.0110.00917.24
8.0.20.0120.00717.40
8.0.10.0040.00417.05
8.0.00.0090.00916.80
7.4.330.0050.00015.55
7.4.320.0000.00616.29
7.4.300.0060.00016.61
7.4.290.0070.00016.52
7.4.280.0000.00816.56
7.4.270.0070.00016.54
7.4.260.0060.00316.43
7.4.250.0000.00716.47
7.4.240.0030.00516.49
7.4.230.0070.00016.53
7.4.220.0030.00516.32
7.4.210.0020.01516.47
7.4.200.0040.00416.41
7.4.160.0040.01216.39
7.4.140.0120.00817.86
7.4.130.0090.01516.51
7.4.120.0090.01116.41
7.4.110.0070.01016.54
7.4.100.0060.01116.64
7.4.90.0030.01316.38
7.4.80.0100.01319.39
7.4.70.0110.00616.28
7.4.60.0090.00616.36
7.4.50.0070.01016.27
7.4.40.0160.00016.56
7.4.00.0100.00314.82
7.3.330.0050.00013.43
7.3.320.0030.00313.36
7.3.310.0030.00616.35
7.3.300.0040.00416.22
7.3.290.0030.00316.23
7.3.280.0080.01016.34
7.3.260.0120.00516.49
7.3.240.0070.01016.37
7.3.230.0150.00316.55
7.3.210.0150.00316.21
7.3.200.0080.01016.21
7.3.190.0100.01016.33
7.3.180.0150.00316.48
7.3.170.0030.01316.62
7.3.160.0200.00016.53
7.3.110.0100.00314.76
7.3.100.0090.00314.69
7.3.90.0030.01014.66
7.3.80.0080.00514.84
7.3.70.0060.00614.72
7.3.60.0030.00814.62
7.3.50.0160.00214.78
7.3.40.0070.00714.61
7.3.30.0100.00314.59
7.3.20.0090.00915.59
7.3.10.0110.00116.12
7.3.00.0070.01116.04
7.2.330.0100.01416.45
7.2.320.0130.01016.62
7.2.310.0100.00716.21
7.2.300.0100.00716.57
7.2.290.0030.01716.54
7.2.240.0070.00715.01
7.2.230.0080.00614.55
7.2.220.0110.00314.68
7.2.210.0000.01414.72
7.2.200.0030.01314.82
7.2.190.0130.00514.74
7.2.180.0080.00914.67
7.2.170.0090.00614.85
7.2.160.0060.00614.56
7.2.150.0070.00715.84
7.2.140.0120.00715.80
7.2.130.0070.01116.07
7.2.120.0060.01216.17
7.2.110.0160.00315.78
7.2.100.0140.00615.72
7.2.90.0130.00815.69
7.2.80.0130.00915.77
7.2.70.0110.00915.93
7.2.60.0110.00815.86
7.2.50.0130.00515.80
7.2.40.0110.00815.71
7.2.30.0140.00615.81
7.2.20.0110.00615.77
7.2.10.0100.00715.71
7.2.00.0110.00715.82
7.1.330.0040.00813.53
7.1.320.0100.00313.52
7.1.310.0000.01213.86
7.1.300.0100.00814.64
7.1.290.0070.00514.52
7.1.280.0080.00714.54
7.1.270.0100.00614.61
7.1.260.0050.00814.75
7.1.250.0050.00814.83
7.1.240.0060.00814.56
7.1.230.0130.00814.26
7.1.220.0130.01214.19
7.1.210.0130.00714.21
7.1.200.0130.00914.40
7.1.190.0610.00714.26
7.1.180.0130.00514.38
7.1.170.0120.00914.36
7.1.160.0130.00714.35
7.1.150.0100.00714.23
7.1.140.0160.00414.37
7.1.130.0140.00414.33
7.1.120.0130.00714.32
7.1.110.0090.01014.34
7.1.100.0100.01114.28
7.1.90.0120.00514.40
7.1.80.0160.00514.30
7.1.70.0120.00514.21
7.1.60.0170.00620.38
7.1.50.0190.00720.19
7.1.40.0160.01120.46
7.1.30.0150.01120.20
7.1.20.0140.01020.41
7.1.10.0100.00914.33
7.1.00.0090.00714.32
7.0.330.0080.00514.21
5.6.400.0110.00714.04
5.6.390.0070.01314.26
5.6.380.0070.00614.00

preferences:
23.83 ms | 403 KiB | 5 Q