3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TEST_CONST', true); $f1 = function() { return extension_loaded('pdo'); }; $f2 = function() { return TEST_CONST; }; $f1(); $f2(); extension_loaded('pdo'); TEST_CONST;

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.60.0060.00918.14
8.3.50.0130.00721.17
8.3.40.0110.00418.71
8.3.30.0140.00018.72
8.3.20.0060.00320.04
8.3.10.0030.00623.48
8.3.00.0020.00520.38
8.2.180.0180.00316.46
8.2.170.0110.00322.96
8.2.160.0110.00420.27
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00417.75
8.2.110.0030.00719.39
8.2.100.0060.00617.84
8.2.90.0000.00719.23
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0030.00517.80
8.2.50.0000.00918.07
8.2.40.0050.00321.19
8.2.30.0000.00818.05
8.2.20.0050.00217.63
8.2.10.0000.00818.17
8.2.00.0000.00717.97
8.1.280.0100.00725.92
8.1.270.0040.00420.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.04
8.1.230.0090.00320.97
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0030.00518.65
8.1.160.0040.00421.98
8.1.150.0000.00718.94
8.1.140.0080.00017.51
8.1.130.0040.00417.71
8.1.120.0030.00517.40
8.1.110.0000.00717.46
8.1.100.0030.00517.47
8.1.90.0040.00417.49
8.1.80.0050.00317.48
8.1.70.0030.00317.49
8.1.60.0080.00017.53
8.1.50.0000.00717.52
8.1.40.0000.00717.44
8.1.30.0040.00417.66
8.1.20.0000.00717.56
8.1.10.0000.00717.66
8.1.00.0060.00317.49
8.0.300.0050.00319.89
8.0.290.0080.00016.63
8.0.280.0070.00018.51
8.0.270.0000.00917.25
8.0.260.0000.00617.17
8.0.250.0000.00716.96
8.0.240.0000.00716.87
8.0.230.0030.00316.92
8.0.220.0030.00316.89
8.0.210.0000.00816.93
8.0.200.0030.00316.99
8.0.190.0000.00716.98
8.0.180.0040.00416.80
8.0.170.0050.00316.96
8.0.160.0040.00416.91
8.0.150.0000.00816.88
8.0.140.0050.00216.85
8.0.130.0030.00313.34
8.0.120.0050.00316.87
8.0.110.0040.00416.76
8.0.100.0070.00016.84
8.0.90.0040.00416.78
8.0.80.0060.01316.81
8.0.70.0050.00216.88
8.0.60.0050.00216.98
8.0.50.0040.00416.94
8.0.30.0080.01017.02
8.0.20.0130.00617.40
8.0.10.0050.00217.08
8.0.00.0120.00816.75
7.4.330.0070.00015.08
7.4.320.0030.00316.53
7.4.300.0000.00616.64
7.4.290.0070.00016.61
7.4.280.0000.00816.50
7.4.270.0030.00316.42
7.4.260.0000.00716.48
7.4.250.0040.00416.48
7.4.240.0020.00516.56
7.4.230.0000.00716.62
7.4.220.0060.00916.48
7.4.210.0040.01116.60
7.4.200.0050.00316.36
7.4.160.0030.01216.38
7.4.150.0190.00317.40
7.4.140.0170.00717.86
7.4.130.0100.00716.51
7.4.120.0080.01016.30
7.4.110.0070.01016.66
7.4.100.0090.00916.43
7.4.90.0140.00316.42
7.4.80.0100.01019.39
7.4.70.0100.00716.58
7.4.60.0100.00516.45
7.4.50.0040.00416.45
7.4.40.0080.00816.54
7.4.30.0090.00916.39
7.4.00.0060.00815.14
7.3.330.0030.00313.02
7.3.320.0020.00213.03
7.3.310.0050.00316.20
7.3.300.0050.00316.11
7.3.290.0030.01316.21
7.3.280.0040.01316.24
7.3.270.0120.00617.40
7.3.260.0100.01716.18
7.3.250.0060.01216.41
7.3.240.0070.01516.30
7.3.230.0120.00816.42
7.3.210.0040.01416.55
7.3.200.0070.01019.39
7.3.190.0070.01416.21
7.3.180.0090.00616.14
7.3.170.0070.01016.36
7.3.160.0100.01116.14
7.3.10.0160.00016.45
7.3.00.0130.00615.93
7.2.330.0070.01016.68
7.2.320.0110.00716.67
7.2.310.0190.00416.34
7.2.300.0130.00916.52
7.2.290.0130.00916.48
7.2.130.0000.01316.43
7.2.120.0090.00916.55
7.2.110.0140.00916.58
7.2.100.0150.00416.68
7.2.90.0210.00616.46
7.2.80.0290.00416.45
7.2.70.0090.00916.93
7.2.60.0130.00516.65
7.2.50.0130.01016.71
7.2.40.0150.00316.24
7.2.30.0030.00716.20
7.2.20.0070.00716.15
7.2.10.0060.00616.59
7.2.00.0080.00917.46
7.1.250.0130.00515.13
7.1.100.0000.01118.28
7.1.70.0030.00516.90
7.1.60.0040.01920.03
7.1.50.0130.01016.45
7.1.00.0130.06722.31
7.0.200.0410.00314.97
7.0.60.0130.07719.95
7.0.50.0070.04317.94
7.0.40.0200.07320.30
7.0.30.0500.07020.30
7.0.20.0200.07720.08
7.0.10.0030.04320.05
7.0.00.0070.06020.03
5.6.280.0030.03321.12
5.6.210.0070.03720.48
5.6.200.0100.07318.22
5.6.190.0070.08320.67
5.6.180.0330.07320.55
5.6.170.0170.04020.45
5.6.160.0030.08720.51
5.6.150.0200.06718.15
5.6.140.0070.07318.15
5.6.130.0170.03718.14
5.6.120.0070.08321.14
5.6.110.0170.05721.16
5.6.100.0100.07321.14
5.6.90.0000.04321.13
5.6.80.0070.06320.49
5.6.70.4370.03320.44
5.5.350.0200.08320.40
5.5.340.0030.08717.95
5.5.330.0100.08020.35
5.5.320.0300.05720.38
5.5.310.0170.06020.34
5.5.300.0130.06718.04
5.5.290.0130.08018.04
5.5.280.0170.07320.78
5.5.270.0130.07320.95
5.5.260.0100.08320.65
5.5.250.0070.06320.59
5.5.240.4230.04020.28
5.4.450.0200.06019.20
5.4.440.0170.06019.31
5.4.430.0300.04319.54
5.4.420.0500.04719.55
5.4.410.0270.06019.37
5.4.400.0430.04719.02
5.4.390.0200.05018.87
5.4.380.0200.05319.22
5.4.370.0170.05018.88
5.4.360.0300.05719.01
5.4.350.0300.04319.05
5.4.340.0100.06019.16
5.4.320.0170.05019.26
5.4.310.0170.05019.21
5.4.300.0130.05719.15
5.4.290.0230.04319.28
5.4.280.0070.06319.01
5.4.270.0230.04319.30
5.4.260.0170.05019.30
5.4.250.0230.05719.37
5.4.240.0130.05019.25
5.4.230.0130.06019.15
5.4.220.0230.04318.84
5.4.210.0200.04719.31
5.4.200.0170.05016.80
5.4.190.0100.05719.09
5.4.180.0170.05318.93
5.4.170.0100.06018.93
5.4.160.0130.05718.83
5.4.150.0270.04319.09
5.4.140.0170.05316.41
5.4.130.0070.06016.29
5.4.120.0170.06016.39
5.4.110.0270.04716.47
5.4.100.0070.06316.48
5.4.90.0130.05316.51
5.4.80.0170.04716.27
5.4.70.0170.05016.36
5.4.60.0030.07716.57
5.4.50.0030.05016.42
5.4.40.0230.07316.42
5.4.30.0200.08316.42
5.4.20.0230.05016.48

preferences:
54.69 ms | 401 KiB | 5 Q