3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 528.56; $y = 100; ini_set('precision', 32); echo $x * $y . "\n"; echo json_encode([$x * $y]);

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.0110.00718.18
8.3.50.0140.00416.36
8.3.40.0080.00920.04
8.3.30.0120.00519.66
8.3.20.0030.01022.13
8.3.10.0100.00321.84
8.3.00.0110.00721.98
8.2.180.0150.00425.92
8.2.170.0070.01021.84
8.2.160.0070.00921.09
8.2.150.0050.00922.56
8.2.140.0070.00623.44
8.2.130.0100.00324.10
8.2.120.0030.01020.96
8.2.110.0100.00420.02
8.2.100.0150.00619.12
8.2.90.0150.00219.33
8.2.80.0150.00419.12
8.2.70.0110.00542.97
8.2.60.0150.00519.05
8.2.50.0130.00419.15
8.2.40.0100.00719.25
8.2.30.0120.00618.67
8.2.20.0090.00718.61
8.2.10.0140.00518.84
8.2.00.0130.00418.94
8.1.280.0110.00325.92
8.1.270.0090.00523.14
8.1.260.0040.00725.01
8.1.250.0020.00925.93
8.1.240.0050.00819.87
8.1.230.0140.00518.77
8.1.220.0090.00718.90
8.1.210.0120.00519.12
8.1.200.0180.00118.75
8.1.190.0100.00818.71
8.1.180.0130.00518.93
8.1.170.0120.00518.76
8.1.160.0080.00818.83
8.1.150.0120.00418.83
8.1.140.0100.00718.87
8.1.130.0100.00618.87
8.1.120.0110.00618.46
8.1.110.0130.00418.46
8.1.100.0100.00718.73
8.1.90.0130.00318.37
8.1.80.0080.00818.70
8.1.70.0130.00318.53
8.1.60.0140.00418.53
8.1.50.0130.00418.50
8.1.40.0100.00818.49
8.1.30.0120.00518.58
8.1.20.0110.00518.81
8.1.10.0110.00618.44
8.1.00.0100.00618.21
8.0.300.0120.00518.99
8.0.290.0160.00517.58
8.0.280.0150.00518.05
8.0.270.0120.00617.83
8.0.260.0170.00418.06
8.0.250.0100.00717.71
8.0.240.0150.00417.73
8.0.230.0140.00517.61
8.0.220.0150.00417.69
8.0.210.0160.00317.71
8.0.200.0150.00517.69
8.0.190.0130.00617.67
8.0.180.0160.00217.73
8.0.170.0150.00617.67
8.0.160.0160.00417.73
8.0.150.0150.00417.65
8.0.140.0170.00417.71
8.0.130.0140.00516.76
8.0.120.0150.00416.79
8.0.110.0160.00416.81
8.0.100.0140.00516.81
8.0.90.0150.00416.82
8.0.80.0150.00716.77
8.0.70.0120.00616.97
8.0.60.0130.00516.79
8.0.50.0130.00616.67
8.0.30.0110.00817.04
8.0.20.0150.00616.96
8.0.10.0140.00916.94
8.0.00.0100.00617.10
7.4.330.0130.00417.29
7.4.320.0160.00417.54
7.4.300.0110.00517.13
7.4.290.0150.00617.54
7.4.280.0160.00317.55
7.4.270.0150.00417.50
7.4.260.0160.00517.15
7.4.250.0160.00416.59
7.4.240.0150.00416.63
7.4.230.0160.00416.61
7.4.220.0130.00416.60
7.4.210.0110.00716.58
7.4.200.0150.00416.60
7.4.190.0140.00716.61
7.4.180.0160.00616.71
7.4.160.0110.00716.58
7.4.150.0150.00516.71
7.4.140.0160.00416.76
7.4.130.0130.00616.65
7.4.120.0130.00716.59
7.4.110.0130.00716.58
7.4.100.0130.00616.62
7.4.90.0130.00716.57
7.4.80.0120.00816.73
7.4.70.0120.00816.56
7.4.60.0100.01016.54
7.4.50.0110.00916.50
7.4.40.0110.00816.50
7.4.30.0120.00716.54
7.4.20.0120.00616.53
7.4.10.0110.00816.00
7.4.00.0120.00816.29
7.3.330.0130.00516.38
7.3.320.0140.00516.00
7.3.310.0140.00516.45
7.3.300.0130.00516.52
7.3.290.0170.00516.43
7.3.280.0150.00516.36
7.3.270.0140.00716.52
7.3.260.0120.00816.51
7.3.250.0180.00416.48
7.3.240.0110.00916.45
7.3.230.0110.00816.50
7.3.220.0130.00716.46
7.3.210.0120.00816.44
7.3.200.0120.00816.47
7.3.190.0130.00616.40
7.3.180.0110.00816.43
7.3.170.0110.00716.44
7.3.160.0140.00516.42
7.3.150.0130.00716.43
7.3.140.0110.00816.42
7.3.130.0100.00816.26
7.3.120.0100.00816.22
7.3.110.0130.00616.27
7.3.100.0100.00816.12
7.3.90.0100.00816.15
7.3.80.0120.00616.17
7.3.70.0120.00616.23
7.3.60.0100.00816.02
7.3.50.0090.00915.96
7.3.40.0120.00815.95
7.3.30.0110.00815.97
7.3.20.0120.00716.50
7.3.10.0130.00716.45
7.3.00.0130.00716.20
7.2.340.0110.00816.07
7.2.330.0140.00816.59
7.2.320.0150.00616.54
7.2.310.0130.00916.62
7.2.300.0160.00516.54
7.2.290.0150.00716.57
7.2.280.0130.00916.53
7.2.270.0160.00716.57
7.2.260.0140.00616.43
7.2.250.0130.00816.43
7.2.240.0140.00816.37
7.2.230.0120.00816.33
7.2.220.0120.00816.31
7.2.210.0130.00716.33
7.2.200.0120.00816.31
7.2.190.0130.00816.13
7.2.180.0130.00816.15
7.2.170.0120.00916.10
7.2.160.0120.00916.13
7.2.150.0130.00916.68
7.2.140.0160.00616.68
7.2.130.0120.00816.72
7.2.120.0130.00916.71
7.2.110.0140.00816.70
7.2.100.0140.00716.67
7.2.90.0150.00816.68
7.2.80.0120.00716.66
7.2.70.0150.00816.71
7.2.60.0130.00716.71
7.2.50.0140.00716.78
7.2.40.0140.00916.77
7.2.30.0160.00816.84
7.2.20.0150.00816.83
7.2.10.0140.00616.82
7.2.00.0130.00716.76
7.1.330.0130.00716.21
7.1.320.0150.00815.98
7.1.310.0140.00815.95
7.1.300.0200.00715.69
7.1.290.0150.00715.67
7.1.280.0160.00715.70
7.1.270.0140.00715.71
7.1.260.0190.00815.65
7.1.250.0130.00815.61
7.1.240.0150.00715.81
7.1.230.0150.00715.88
7.1.220.0170.00615.89
7.1.210.0160.00615.88
7.1.200.0140.00715.86
7.1.190.0150.00615.89
7.1.180.0140.00715.87
7.1.170.0140.00715.84
7.1.160.0140.00815.88
7.1.150.0140.00715.84
7.1.140.0140.00615.89
7.1.130.0120.00915.86
7.1.120.0130.00815.89
7.1.110.0130.00715.94
7.1.100.0150.00615.90
7.1.90.0140.00815.92
7.1.80.0130.00815.92
7.1.70.0150.00615.87
7.1.60.0130.00815.93
7.1.50.0130.00715.96
7.1.40.0150.00615.94
7.1.30.0150.00615.92
7.1.20.0160.00815.91
7.1.10.0140.00715.88
7.1.00.0140.00715.86

preferences:
38.6 ms | 401 KiB | 5 Q