3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { class DuplicateClassName {} class DuplicateClassName {} } catch (Throwable $e) { echo 'Caught exception: ', $e->getMessage(), 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.10.0100.00716.70
8.5.00.0120.00819.94
8.4.150.0030.00014.05
8.4.140.0130.00817.76
8.4.130.0050.00517.91
8.4.120.0130.00720.45
8.4.110.0110.00918.79
8.4.100.0150.00619.38
8.4.90.0120.00918.39
8.4.80.0120.00319.50
8.4.70.0090.00918.28
8.4.60.0130.00718.66
8.4.50.0120.00818.45
8.4.40.0060.01317.49
8.4.30.0070.01420.35
8.4.20.0100.00018.04
8.4.10.0170.00322.44
8.3.280.0130.00818.51
8.3.270.0120.00716.50
8.3.260.0110.00916.77
8.3.250.0110.00818.93
8.3.240.0110.00716.74
8.3.230.0090.01116.45
8.3.220.0050.00317.09
8.3.210.0100.00818.29
8.3.200.0050.00416.54
8.3.190.0090.01317.06
8.3.180.0090.00918.36
8.3.170.0110.00717.10
8.3.160.0120.00618.23
8.3.150.0070.00719.11
8.3.140.0080.00017.26
8.3.130.0040.00416.63
8.3.120.0060.00918.89
8.3.110.0080.00020.94
8.3.100.0040.00724.06
8.3.90.0000.00826.77
8.3.80.0060.00316.61
8.3.70.0040.01116.63
8.3.60.0120.00316.75
8.3.50.0110.00923.70
8.3.40.0030.01118.59
8.3.30.0130.00418.62
8.3.20.0030.00524.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.34
8.2.280.0080.01018.39
8.2.270.0040.00417.26
8.2.260.0040.00416.31
8.2.250.0080.00016.71
8.2.240.0060.00318.99
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00916.50
8.2.190.0110.01116.63
8.2.180.0070.00725.92
8.2.170.0110.01118.94
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0050.00320.88
8.2.110.0060.00319.21
8.2.100.0090.00317.91
8.2.90.0030.00717.84
8.2.80.0040.00419.03
8.2.70.0100.00217.41
8.2.60.0050.00317.63
8.2.50.0000.00817.90
8.2.40.0080.00017.93
8.2.30.0040.00418.06
8.2.20.0000.00717.89
8.2.10.0000.00719.15
8.2.00.0080.00019.18
8.1.330.0060.00321.63
8.1.320.0110.00816.00
8.1.310.0000.00718.16
8.1.300.0060.00320.03
8.1.290.0000.00930.84
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00322.07
8.1.230.0080.00320.85
8.1.220.0080.00017.74
8.1.210.0040.00418.93
8.1.200.0060.00317.13
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0030.00617.62
8.1.160.0000.00818.70
8.1.150.0000.00818.78
8.1.140.0000.00718.77
8.1.130.0030.00317.43
8.1.120.0000.00917.35
8.1.110.0040.00417.36
8.1.100.0000.00717.30
8.1.90.0000.00717.28
8.1.80.0000.01117.43
8.1.70.0060.00617.37
8.1.60.0000.00817.49
8.1.50.0040.00417.47
8.1.40.0030.00517.46
8.1.30.0040.00417.41
8.1.20.0040.00417.59
8.1.10.0000.00717.42
8.1.00.0030.00617.25
8.0.300.0080.00020.09
8.0.290.0060.00316.75
8.0.280.0000.00818.51
8.0.270.0070.00018.04
8.0.260.0000.00716.75
8.0.250.0000.00716.92
8.0.240.0050.00316.85
8.0.230.0050.00317.00
8.0.220.0030.00316.91
8.0.210.0070.00016.85
8.0.200.0000.00716.93
8.0.190.0040.00416.87
8.0.180.0000.00716.89
8.0.170.0040.00416.87
8.0.160.0000.00716.83
8.0.150.0030.00516.71
8.0.140.0050.00316.75
8.0.130.0000.00613.27
8.0.120.0040.00416.77
8.0.110.0000.00716.90
8.0.100.0000.00716.85
8.0.90.0000.00716.69
8.0.80.0090.00816.84
8.0.70.0070.00016.75
8.0.60.0020.00516.88
8.0.50.0000.00716.82
8.0.30.0140.00616.88
8.0.20.0130.00717.04
8.0.10.0000.00716.85
8.0.00.0130.00916.76
7.4.330.0000.00615.55
7.4.320.0000.00616.45
7.4.300.0030.00316.57
7.4.290.0030.00316.55
7.4.280.0000.00716.44
7.4.270.0000.00716.52
7.4.260.0050.00013.31
7.4.250.0050.00216.34
7.4.240.0070.00016.42
7.4.230.0030.00316.53
7.4.220.0000.00716.43
7.4.210.0090.00616.54
7.4.200.0040.00416.54
7.4.130.0120.00516.43
7.4.120.0130.00316.45
7.4.110.0030.01416.37
7.4.100.0100.00716.52
7.4.90.0060.01016.43
7.4.80.0140.00916.31
7.4.70.0130.01316.25
7.4.60.0130.01116.31
7.4.50.0170.01316.66
7.4.40.0160.01316.50
7.4.30.0230.01016.42
7.4.20.0100.01316.21
7.4.10.0260.00316.21
7.4.00.0100.01016.36
7.3.330.0040.00416.38
7.3.320.0060.00013.23
7.3.310.0000.00716.26
7.3.300.0050.00516.07
7.3.290.0120.00716.21
7.3.260.0200.00316.14
7.3.230.0060.01116.43
7.3.210.0150.00316.45
7.3.200.0210.00416.34
7.3.190.0160.01116.26
7.3.180.0180.00916.34
7.3.170.0160.01616.27
7.3.160.0320.00616.21
7.3.150.0220.00916.31
7.3.140.0150.01016.30
7.3.130.0180.00516.05
7.3.120.0120.00916.23
7.3.110.0110.01116.24
7.3.100.0150.00716.08
7.3.90.0110.01416.13
7.3.80.0190.00516.20
7.3.70.0210.00616.23
7.3.60.0160.00816.23
7.3.50.0160.00616.13
7.3.40.0150.01516.16
7.3.30.0140.00616.00
7.3.20.0160.00816.03
7.3.10.0190.01516.08
7.3.00.0150.00915.97
7.2.340.0040.00416.16
7.2.330.0150.00316.29
7.2.320.0210.00316.49
7.2.310.0230.01116.33
7.2.300.0240.00816.42
7.2.290.0130.00716.50
7.2.280.0130.01616.46
7.2.270.0190.00616.29
7.2.260.0100.01516.44
7.2.250.0170.01116.09
7.2.240.0190.00416.45
7.2.230.0180.01116.04
7.2.220.0100.01416.45
7.2.210.0200.00816.23
7.2.200.0170.01016.22
7.2.190.0100.01316.04
7.2.180.0190.01016.34
7.2.170.0140.00916.41
7.2.160.0150.00916.25
7.2.150.0180.00616.31
7.2.140.0160.00616.22
7.2.130.0220.00816.46
7.2.120.0260.00916.47
7.2.110.0190.01216.23
7.2.100.0130.01616.31
7.2.90.0210.01516.42
7.2.80.0300.01216.24
7.2.70.0280.01416.54
7.2.60.0340.00916.49
7.2.50.0330.00316.37
7.2.40.0200.01216.46
7.2.30.0100.02016.28
7.2.20.0110.01416.47
7.2.10.0090.01716.11
7.2.00.0160.01316.14

preferences:
35.18 ms | 403 KiB | 5 Q