3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mt = microtime(true); var_dump($mt); usleep(123123); $dt = new DateTime('now, 0 microseconds'); var_dump($dt->format('c.u')); // Remove microseconds. $dt->setTime($dt->format('H'), $dt->format('i'), $dt->format('s'), 0); var_dump($dt->format('c.u'));

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)
7.4.00.0100.01015.31
7.3.120.0100.01014.66
7.3.110.0170.00314.81
7.3.100.0060.01215.05
7.3.90.0030.01314.59
7.3.80.0070.01415.07
7.3.70.0070.01014.99
7.3.60.0120.00614.92
7.3.50.0100.00314.68
7.3.40.0070.00715.05
7.3.30.0090.00914.91
7.3.20.0060.01016.55
7.3.10.0100.00316.42
7.3.00.0060.01016.92
7.2.250.0100.00714.96
7.2.240.0130.00514.69
7.2.230.0070.00715.43
7.2.220.0110.00715.33
7.2.210.0120.00315.30
7.2.200.0030.01415.10
7.2.190.0000.01915.17
7.2.180.0100.00715.18
7.2.170.0100.00715.33
7.2.160.0040.01515.13
7.2.150.0090.00917.03
7.2.140.0000.01916.93
7.2.130.0040.01516.73
7.2.120.0070.01316.93
7.2.110.0130.00316.57
7.2.100.0120.00916.84
7.2.90.0040.01516.96
7.2.80.0000.01917.18
7.2.70.0030.01317.04
7.2.60.0100.01017.09
7.2.50.0040.01117.17
7.2.40.0060.00917.04
7.2.30.0090.01017.15
7.2.20.0030.01616.84
7.2.10.0100.01016.77
7.2.00.0050.01018.25
7.1.330.0030.01516.04
7.1.320.0070.00715.49
7.1.310.0070.01316.05
7.1.300.0060.00915.97
7.1.290.0000.01516.02
7.1.280.0030.01215.78
7.1.270.0030.01315.86
7.1.260.0060.01215.80
7.1.250.0040.01415.85
7.1.240.0120.00316.12
7.1.230.0070.01115.64
7.1.220.0090.00915.63
7.1.210.0030.01315.62
7.1.200.0000.01815.95
7.1.190.0000.01815.79
7.1.180.0030.01415.96
7.1.170.0040.01115.92
7.1.160.0080.00816.02
7.1.150.0060.00915.64
7.1.140.0070.00715.94
7.1.130.0040.01115.63
7.1.120.0060.00915.73
7.1.110.0070.01015.98
7.1.100.0080.00816.05
7.1.90.0070.01015.86
7.1.80.0060.01215.93
7.1.70.0020.01116.50
7.1.60.0030.01216.72
7.1.50.0070.00916.60
7.1.40.0050.00716.37
7.1.30.0090.00816.40
7.1.20.0060.00916.44
7.1.10.0080.00616.31
7.1.00.0040.00616.37
7.0.330.0030.01015.45
7.0.320.0110.00415.35
7.0.310.0040.01115.27
7.0.300.0060.00915.50
7.0.290.0090.00615.62
7.0.280.0100.00715.34
7.0.270.0090.00615.29
7.0.260.0070.01015.03
7.0.250.0000.01415.50
7.0.240.0000.01815.45
7.0.230.0060.01015.24
7.0.220.0040.01415.43
7.0.210.0000.01415.43
7.0.200.0040.01116.20
7.0.190.0050.01216.15
7.0.180.0030.00915.99
7.0.170.0060.01115.78
7.0.160.0030.01115.87
7.0.150.0090.00915.94
7.0.140.0060.00915.79
7.0.130.0090.00916.11
7.0.120.0070.01015.99
7.0.110.0050.00815.99
7.0.100.0020.01115.86
7.0.90.0040.00915.86
7.0.80.0060.00615.97
7.0.70.0070.00815.76
7.0.60.0080.00515.97
7.0.50.0000.01215.98
7.0.40.0080.00614.35
7.0.30.0020.01214.41
7.0.20.0050.00814.13
7.0.10.0020.01214.20
7.0.00.0050.01014.36
5.6.400.0040.01414.53
5.6.390.0000.01614.60
5.6.380.0040.01514.52
5.6.370.0070.01014.25
5.6.360.0060.00614.31
5.6.350.0040.01214.02
5.6.340.0070.00714.65
5.6.330.0120.00314.54
5.6.320.0060.00914.61
5.6.310.0090.00614.11
5.6.300.0070.03117.73
5.6.290.0050.02717.58
5.6.280.0020.03417.69
5.6.270.0090.04317.67
5.6.260.0080.03317.78
5.6.250.0070.02717.75
5.6.240.0030.02717.76
5.6.230.0040.03117.49
5.6.220.0070.02617.82
5.6.210.0080.02417.67
5.6.200.0070.02417.76
5.6.190.0020.02817.61
5.6.180.0080.02317.68
5.6.170.0040.04617.58
5.6.160.0160.02017.55
5.6.150.0130.02517.61
5.6.140.0030.04917.66
5.6.130.0030.04917.85
5.6.120.0080.02317.58
5.6.110.0050.02917.57
5.6.100.0020.03117.67
5.6.90.0100.03317.69
5.6.80.0060.02617.17
5.6.70.0020.03017.27
5.6.60.0100.03517.13
5.6.50.0070.03317.39
5.6.40.0050.04417.25
5.6.30.0070.02517.34
5.6.20.0020.04717.33
5.6.10.0080.02617.20
5.6.00.0050.05017.29

preferences:
42.67 ms | 403 KiB | 5 Q