3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getNumber() : int { return 3; } function getFunctionName() : string { return 'var_dump'; } function getBullshit() : string { return 'bullshit'; } var_dump(getNumber()/2); getFunctionName()(getNumber()/2); getBullshit()(getNumber()/2);

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.4.120.0120.00820.51
8.4.110.0110.00822.41
8.4.100.0140.00817.92
8.4.90.0080.00918.04
8.4.80.0070.00217.91
8.4.70.0150.00617.86
8.4.60.0110.00718.77
8.4.50.0140.00618.57
8.4.40.0130.00320.52
8.4.30.0160.00320.75
8.4.20.0150.00320.03
8.4.10.0030.00621.91
8.3.250.0110.00519.09
8.3.240.0050.00416.54
8.3.230.0110.00916.60
8.3.220.0120.00617.10
8.3.210.0060.00216.78
8.3.200.0070.00316.85
8.3.190.0030.00517.00
8.3.180.0130.00618.76
8.3.170.0130.00617.01
8.3.160.0040.00417.11
8.3.150.0120.00917.16
8.3.140.0040.00418.96
8.3.130.0000.00818.74
8.3.120.0060.00318.85
8.3.110.0130.00620.94
8.3.100.0050.00324.06
8.3.90.0150.00426.77
8.3.80.0030.00718.43
8.3.70.0130.01018.15
8.3.60.0060.01218.30
8.3.50.0150.00416.43
8.3.40.0130.00620.29
8.3.30.0140.00318.89
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.290.0110.00720.45
8.2.280.0110.00818.47
8.2.270.0060.01216.83
8.2.260.0040.00416.76
8.2.250.0080.00516.55
8.2.240.0090.00016.96
8.2.230.0070.00322.58
8.2.220.0130.00337.54
8.2.210.0180.00026.77
8.2.200.0090.00018.41
8.2.190.0120.00916.58
8.2.180.0140.00016.75
8.2.170.0120.00918.94
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0090.00022.08
8.2.100.0070.00417.91
8.2.90.0040.00419.08
8.2.80.0030.00617.97
8.2.70.0050.00317.38
8.2.60.0050.00317.93
8.2.50.0030.00518.07
8.2.40.0040.00417.97
8.2.30.0060.00317.96
8.2.20.0160.00017.61
8.2.10.0130.00417.73
8.2.00.0130.00317.71
8.1.330.0080.01120.31
8.1.320.0120.00718.24
8.1.310.0150.00316.30
8.1.300.0040.00418.53
8.1.290.0060.00330.84
8.1.280.0120.00925.92
8.1.270.0070.00024.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0120.00320.77
8.1.230.0060.00717.77
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.36
8.1.180.0030.00618.10
8.1.170.0090.00018.66
8.1.160.0000.00818.76
8.1.150.0130.00317.36
8.1.140.0130.00417.31
8.1.130.0080.00817.23
8.1.120.0130.00417.43
8.1.110.0120.00417.29
8.1.100.0080.00817.45
8.1.90.0090.00617.29
8.1.80.0050.01017.43
8.1.70.0160.00017.38
8.1.60.0160.00417.57
8.1.50.0180.00017.54
8.1.40.0140.00517.66
8.1.30.0110.00817.59
8.1.20.0200.00017.57
8.1.10.0120.00817.42
8.1.00.0170.00217.46
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0020.00518.44
8.0.270.0090.00616.91
8.0.260.0100.00716.75
8.0.250.0210.00016.94
8.0.240.0120.00416.95
8.0.230.0100.00517.05
8.0.220.0130.00316.92
8.0.210.0160.00016.83
8.0.200.0110.00416.90
8.0.190.0140.00016.83
8.0.180.0070.00716.80
8.0.170.0080.00816.78
8.0.160.0130.00316.79
8.0.150.0050.01016.85
8.0.140.0100.00516.76
8.0.130.0090.00616.79
8.0.120.0150.00016.78
8.0.110.0070.00716.70
8.0.100.0130.00316.71
8.0.90.0100.00516.80
8.0.80.0110.00416.80
8.0.70.0090.00616.72
8.0.60.0140.00016.84
8.0.50.0150.00016.71
8.0.30.0140.00316.67
8.0.20.0100.00516.91
8.0.10.0100.00516.87

preferences:
27.07 ms | 403 KiB | 5 Q