3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Does NOT work as expected. $sxml = simplexml_load_string('<test><num>20.5</num><den>1</den></test>'); $ans = $sxml->num / $sxml->den; echo "XML Test:\n"; echo "{$sxml->num} / {$sxml->den} = {$ans}\n"; // Output: 20.5 / 1 = 20

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.70.0110.00416.48
8.3.60.0110.00418.47
8.3.50.0000.01418.14
8.3.40.0120.00318.71
8.3.30.0040.01318.79
8.3.20.0080.00019.29
8.3.10.0070.00723.75
8.3.00.0060.00323.79
8.2.190.0060.00916.75
8.2.180.0090.00618.19
8.2.170.0040.01122.96
8.2.160.0100.00320.55
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00322.38
8.2.120.0060.00326.35
8.2.110.0090.00321.09
8.2.100.0070.00418.47
8.2.90.0000.00918.47
8.2.80.0060.00618.05
8.2.70.0030.00718.05
8.2.60.0000.01118.34
8.2.50.0080.00018.10
8.2.40.0050.00319.58
8.2.30.0000.00720.72
8.2.20.0000.00718.10
8.2.10.0060.00318.23
8.2.00.0070.00019.56
8.1.280.0070.00725.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.26
8.1.230.0040.00822.93
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0060.00319.02
8.1.160.0040.00418.96
8.1.150.0080.00019.13
8.1.140.0070.00019.01
8.1.130.0000.00719.16
8.1.120.0090.00017.54
8.1.110.0070.00017.52
8.1.100.0040.00417.66
8.1.90.0040.00317.45
8.1.80.0040.00417.61
8.1.70.0030.00717.53
8.1.60.0000.00817.70
8.1.50.0030.00517.66
8.1.40.0030.00617.62
8.1.30.0030.00517.80
8.1.20.0040.00417.72
8.1.10.0030.00617.73
8.1.00.0040.00417.61
8.0.300.0000.00719.73
8.0.290.0000.00716.88
8.0.280.0000.00718.64
8.0.270.0050.00217.52
8.0.260.0030.00517.46
8.0.250.0000.00717.21
8.0.240.0060.00317.06
8.0.230.0050.00217.13
8.0.220.0040.00416.95
8.0.210.0000.00717.02
8.0.200.0060.00017.05
8.0.190.0050.00317.11
8.0.180.0030.00517.11
8.0.170.0060.00316.99
8.0.160.0090.00017.10
8.0.150.0090.00016.92
8.0.140.0000.00716.99
8.0.130.0030.00313.55
8.0.120.0080.00017.08
8.0.110.0030.00516.96
8.0.100.0040.00417.07
8.0.90.0000.00717.08
8.0.80.0070.01117.01
8.0.70.0000.00717.04
8.0.60.0000.00717.09
8.0.50.0040.00416.84
8.0.30.0090.01017.28
8.0.20.0060.01217.40
8.0.10.0030.00517.15
8.0.00.0110.00716.93
7.4.330.0000.00515.55
7.4.320.0030.00316.72
7.4.300.0030.00316.65
7.4.290.0070.00016.70
7.4.280.0040.00416.67
7.4.270.0070.00016.77
7.4.260.0000.00716.63
7.4.250.0000.00716.74
7.4.240.0040.00416.70
7.4.230.0050.00316.66
7.4.220.0000.00816.76
7.4.210.0130.00516.74
7.4.200.0000.00716.79
7.4.160.0100.00816.66
7.4.140.0090.01017.86
7.4.130.0110.00816.48
7.4.120.0110.00916.69
7.4.110.0060.01216.74
7.4.100.0090.00916.68
7.4.90.0030.01916.62
7.4.80.0090.01419.39
7.4.70.0200.00016.68
7.4.60.0080.00816.48
7.4.50.0050.00516.58
7.4.40.0120.00616.65
7.4.00.0050.00514.85
7.3.330.0000.00513.15
7.3.320.0030.00313.30
7.3.310.0070.00016.50
7.3.300.0070.00016.48
7.3.290.0030.00316.37
7.3.280.0070.00916.51
7.3.260.0090.01316.73
7.3.240.0090.00916.57
7.3.230.0110.00916.54
7.3.210.0080.00816.39
7.3.200.0100.00716.49
7.3.190.0060.01216.43
7.3.180.0130.00316.60
7.3.170.0060.01016.71
7.3.160.0060.01016.52
7.2.330.0090.00916.88
7.2.320.0090.00916.85
7.2.310.0150.00416.95
7.2.300.0180.00416.54
7.2.290.0090.00916.53
7.2.80.1420.01014.68
7.2.70.1000.00315.18
7.2.60.2180.00714.91
7.2.50.2330.00314.75
7.2.40.3060.00015.14
7.2.30.1550.00315.09
7.2.20.2020.01314.97
7.2.10.1340.01315.31
7.2.00.2140.01014.70
7.1.200.1860.00914.04
7.1.190.1820.00313.93
7.1.180.1800.01013.93
7.1.170.1570.00713.77
7.1.160.1780.01013.99
7.1.150.1440.00713.85
7.1.140.1520.00713.82
7.1.130.1580.01013.88
7.1.120.1740.00713.89
7.1.110.1880.00314.03
7.1.100.1640.00713.68
7.1.90.5220.00713.72
7.1.80.2420.01013.65
7.1.70.3210.00713.50
7.1.60.2310.01331.88
7.1.50.2920.02031.78
7.1.40.3640.00331.89
7.1.30.3700.01331.80
7.1.20.3160.00731.66
7.1.10.2430.00313.80
7.1.00.2480.00713.86

preferences:
35.77 ms | 401 KiB | 5 Q