3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = simplexml_load_string('<x>2.5</x>'); var_dump($x * 1); $y = '2.5'; var_dump($y * 1);

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.1.130.0030.00319.14
8.1.120.0040.00317.52
8.1.110.0040.00417.47
8.1.100.0000.00717.47
8.1.90.0040.00417.57
8.1.80.0030.00317.62
8.1.70.0030.00317.57
8.1.60.0000.00717.54
8.1.50.0030.00617.56
8.1.40.0000.00817.51
8.1.30.0000.00817.62
8.1.20.0040.00417.72
8.1.10.0000.00817.64
8.1.00.0040.00417.54
8.0.260.0040.00417.45
8.0.250.0040.00417.13
8.0.240.0030.00617.01
8.0.230.0000.00716.95
8.0.220.0050.00317.05
8.0.210.0000.00716.94
8.0.200.0040.00416.98
8.0.190.0000.00717.13
8.0.180.0040.00416.95
8.0.170.0040.00416.93
8.0.160.0050.00317.07
8.0.150.0000.00716.80
8.0.140.0040.00417.01
8.0.130.0000.00513.41
8.0.120.0000.00716.95
8.0.110.0000.00816.94
8.0.100.0040.00416.82
8.0.90.0070.00016.89
8.0.80.0030.01217.07
8.0.70.0000.00717.13
8.0.60.0030.00416.88
8.0.50.0000.00716.79
8.0.30.0040.01516.96
8.0.20.0130.00617.40
8.0.10.0000.00717.08
8.0.00.0030.01616.80
7.4.330.0060.00015.55
7.4.320.0060.00016.57
7.4.300.0050.00316.73
7.4.290.0040.00416.72
7.4.280.0030.00516.53
7.4.270.0000.00816.72
7.4.260.0030.00316.61
7.4.250.0030.00516.64
7.4.240.0030.00316.73
7.4.230.0000.00816.83
7.4.220.0110.01116.55
7.4.210.0060.00916.62
7.4.200.0040.00416.70
7.4.160.0050.01016.59
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0080.00916.63
7.4.120.0110.01016.58
7.4.110.0150.00616.75
7.4.100.0150.00616.49
7.4.90.0130.01016.42
7.4.80.0090.00919.39
7.4.70.0100.00616.66
7.4.60.0060.01316.57
7.4.50.0030.01216.54
7.4.40.0040.01216.56
7.4.30.0110.01116.62
7.4.10.0070.01015.14
7.4.00.0070.00914.75
7.3.330.0050.00013.27
7.3.320.0030.00313.32
7.3.310.0030.00316.25
7.3.300.0030.00316.25
7.3.290.0070.00816.35
7.3.280.0080.00916.38
7.3.270.0110.00717.40
7.3.260.0140.00616.38
7.3.250.0050.01416.35
7.3.240.0140.00916.38
7.3.230.0130.00416.60
7.3.210.0080.00816.77
7.3.200.0030.01216.53
7.3.190.0070.01016.62
7.3.180.0090.00916.59
7.3.170.0090.00916.75
7.3.160.0160.00016.41
7.3.130.0060.01315.09
7.3.120.0050.01114.93
7.3.110.0030.01414.79
7.3.100.0020.01014.84
7.3.90.0020.01014.83
7.3.80.0070.00814.80
7.3.70.0070.00814.67
7.3.60.0060.00714.88
7.3.50.0030.00914.88
7.3.40.0080.00414.78
7.3.30.0030.01014.83
7.3.20.0050.00816.61
7.3.10.0030.01016.79
7.3.00.0060.00816.68
7.2.330.0150.00316.94
7.2.320.0070.01116.77
7.2.310.0070.01016.73
7.2.300.0090.00916.48
7.2.290.0060.01216.61
7.2.260.0040.01114.76
7.2.250.0100.00515.19
7.2.240.0110.00615.05
7.2.230.0070.00815.05
7.2.220.0050.00815.12
7.2.210.0050.00914.95
7.2.200.0070.00914.85
7.2.190.0080.00814.95
7.2.180.0050.01014.95
7.2.170.0090.00514.90
7.2.160.0070.01414.95
7.2.150.0000.01817.08
7.2.140.0080.00816.91
7.2.130.0070.00716.65
7.2.120.0070.00316.70
7.2.110.0070.00716.93
7.2.100.0100.00316.74
7.2.90.0000.01517.14
7.2.80.0000.01516.96
7.2.70.0060.00616.85
7.2.60.0080.00616.99
7.2.50.0120.00317.00
7.2.40.0070.00317.07
7.2.30.0070.01016.95
7.2.20.0060.00916.90
7.2.10.0130.00616.87
7.2.00.0120.00016.86
7.1.330.0070.00815.93
7.1.320.0050.00715.61
7.1.310.0060.00515.95
7.1.300.0030.01015.87
7.1.290.0100.00315.80
7.1.280.0030.00615.72
7.1.270.0100.00715.92
7.1.260.0030.01015.96
7.1.250.0040.01115.88
7.1.240.0040.01115.72
7.1.230.0090.00615.88
7.1.220.0070.00715.77
7.1.210.0060.00615.69
7.1.200.0060.00915.81
7.1.190.0060.00615.50
7.1.180.0060.00915.68
7.1.170.0100.00015.73
7.1.160.0110.00315.68
7.1.150.0060.00615.86
7.1.140.0100.00015.74
7.1.130.0000.01215.80
7.1.120.0000.01515.91
7.1.110.0030.01115.77
7.1.100.0080.00815.98
7.1.90.0100.00316.09
7.1.80.0070.01015.79
7.1.70.0050.00816.40
7.1.60.0030.01016.48
7.1.50.0060.00615.62
7.1.40.0060.00915.67
7.1.30.0000.01315.49
7.1.20.0700.03527.22
7.1.10.0300.03518.00
7.1.00.0330.03518.10
7.0.330.0030.01015.58
7.0.320.0000.01115.35
7.0.310.0050.00815.42
7.0.300.0030.01015.21
7.0.290.0070.00715.43
7.0.280.0030.01415.48
7.0.270.0000.01315.64
7.0.260.0070.00715.35
7.0.250.0000.01515.41
7.0.240.0110.00415.45
7.0.230.0040.01115.11
7.0.220.0080.00415.43
7.0.210.0070.00715.61
7.0.200.0030.01316.00
7.0.190.0030.00915.19
7.0.180.0000.00915.29
7.0.170.0000.01415.26
7.0.160.0330.03017.82
7.0.150.0300.03317.74
7.0.140.0450.02717.66
7.0.130.0460.04117.67
7.0.120.0280.03917.82
7.0.110.0320.03317.75
7.0.100.0320.03417.75
7.0.90.0320.03117.73
7.0.80.0310.03017.77
7.0.70.0350.03217.75
7.0.60.0270.03617.74
7.0.50.0320.03517.90
7.0.40.0290.03316.81
7.0.30.0270.03316.81
7.0.20.0330.03616.67
7.0.10.0270.03416.81
7.0.00.0690.03716.76
5.6.400.0100.00614.25
5.6.390.0030.01314.37
5.6.380.0100.00714.45
5.6.370.0030.01014.10
5.6.360.0070.00714.22
5.6.350.0100.00314.18
5.6.340.0100.01014.50
5.6.330.0030.00614.66
5.6.320.0030.01013.98
5.6.310.0000.01414.23
5.6.300.0070.00714.24
5.6.290.0000.01214.05
5.6.280.0030.01314.48
5.6.270.0100.00314.25
5.6.260.0030.00814.38
5.6.250.0070.00714.37
5.6.240.0040.00814.29
5.6.230.0090.00614.27
5.6.220.0100.00714.31
5.6.210.0000.01014.11
5.6.200.0070.00414.70
5.6.190.0040.01114.11
5.6.180.0070.00714.36
5.6.170.0060.00814.10
5.6.160.0040.01114.04
5.6.150.0090.00614.27
5.6.140.0000.01014.58
5.6.130.0030.00614.55
5.6.120.0060.00614.10
5.6.110.0030.01014.36
5.6.100.0070.00714.08
5.6.90.0090.00914.02
5.6.80.0040.01214.31
5.6.70.0040.00814.07
5.6.60.0100.00313.99
5.6.50.0000.01514.13
5.6.40.0090.00614.29
5.6.30.0100.00014.11
5.6.20.0070.00714.29
5.6.10.0060.00314.02
5.6.00.0070.00714.13

preferences:
53.22 ms | 406 KiB | 5 Q