3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getText() : string { return 'text'; } function printText(string $text) : void { echo $text . PHP_EOL; } printText(getText()); printText('custom text'); printText([]);

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.0140.00817.70
8.4.110.0150.00520.46
8.4.100.0130.00717.92
8.4.90.0110.00920.79
8.4.80.0050.00418.71
8.4.70.0080.00918.88
8.4.60.0130.00918.54
8.4.50.0100.01018.56
8.4.40.0100.01017.53
8.4.30.0080.00018.69
8.4.20.0060.01325.67
8.4.10.0030.00621.40
8.3.250.0160.00416.51
8.3.240.0120.00716.57
8.3.230.0120.00916.60
8.3.220.0060.01318.91
8.3.210.0090.00618.72
8.3.200.0060.00216.56
8.3.190.0110.00717.09
8.3.180.0090.01018.91
8.3.170.0110.00716.65
8.3.160.0130.00618.97
8.3.150.0040.01117.15
8.3.140.0100.01019.11
8.3.130.0100.00018.67
8.3.120.0040.01520.71
8.3.110.0080.00420.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0070.00319.36
8.3.70.0120.00316.63
8.3.60.0150.00316.50
8.3.50.0080.00924.55
8.3.40.0060.00918.75
8.3.30.0070.01118.72
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0110.00718.66
8.2.280.0150.00518.50
8.2.270.0160.00316.43
8.2.260.0040.00416.86
8.2.250.0000.00718.37
8.2.240.0040.00416.94
8.2.230.0040.00422.58
8.2.220.0070.01037.54
8.2.210.0000.01426.77
8.2.200.0090.00018.88
8.2.190.0110.00416.63
8.2.180.0110.00425.92
8.2.170.0130.00618.75
8.2.160.0130.00322.96
8.2.150.0090.00025.66
8.2.140.0070.00024.66
8.2.130.0110.00426.16
8.2.120.0070.01026.16
8.2.110.0050.00520.38
8.2.100.0090.00317.79
8.2.90.0050.00318.34
8.2.80.0000.00819.02
8.2.70.0090.00017.63
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0000.00818.16
8.2.20.0000.00818.09
8.2.10.0000.00819.14
8.2.00.0000.00719.26
8.1.330.0070.00115.93
8.1.320.0130.00416.25
8.1.310.0050.00316.34
8.1.300.0040.00418.20
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0070.00023.99
8.1.260.0110.00426.35
8.1.250.0070.01128.09
8.1.240.0030.00522.10
8.1.230.0090.00320.91
8.1.220.0030.00617.74
8.1.210.0040.00418.84
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00418.34
8.1.160.0000.00718.66
8.1.150.0000.00718.75
8.1.140.0040.00418.71
8.1.130.0030.00320.07
8.1.120.0000.00817.38
8.1.110.0030.00517.20
8.1.100.0080.00017.32
8.1.90.0040.00417.29
8.1.80.0030.00617.30
8.1.70.0040.00217.35
8.1.60.0040.00417.41
8.1.50.0060.00317.39
8.1.40.0050.00317.33
8.1.30.0030.00617.55
8.1.20.0030.00917.64
8.1.10.0040.00417.52
8.1.00.0030.00917.35
8.0.300.0000.00720.09
8.0.290.0000.00716.75
8.0.280.0050.00320.09
8.0.270.0030.00318.06
8.0.260.0000.00620.19
8.0.250.0030.00316.88
8.0.240.0070.00017.02
8.0.230.0030.00317.05
8.0.220.0030.00316.91
8.0.210.0000.00716.88
8.0.200.0040.00416.92
8.0.190.0040.00416.89
8.0.180.0000.00716.96
8.0.170.0090.00016.85
8.0.160.0040.00416.92
8.0.150.0000.00716.78
8.0.140.0070.00016.91
8.0.130.0030.00313.40
8.0.120.0050.00216.98
8.0.110.0000.00716.85
8.0.100.0000.00717.02
8.0.90.0000.00716.92
8.0.80.0110.00416.90
8.0.70.0000.00717.05
8.0.60.0000.00717.02
8.0.50.0000.00716.83
8.0.30.0000.01717.30
8.0.20.0120.00717.00
8.0.10.0020.00516.84
8.0.00.0120.01216.45
7.4.330.0050.00015.55
7.4.320.0040.00416.38
7.4.300.0030.00316.43
7.4.290.0030.00316.43
7.4.280.0000.00716.53
7.4.270.0000.00716.38
7.4.260.0030.00313.22
7.4.250.0040.00416.39
7.4.240.0000.00816.45
7.4.230.0000.00716.51
7.4.220.0030.00316.51
7.4.210.0070.00816.46
7.4.200.0030.00316.48
7.4.130.0100.01016.52
7.4.120.0100.01016.27
7.4.110.0140.00316.62
7.4.100.0130.00316.43
7.4.90.0060.01016.73
7.4.80.0100.01316.53
7.4.70.0120.00816.66
7.4.60.0140.00516.35
7.4.50.0070.01116.23
7.4.40.0090.00916.13
7.4.30.0000.02316.12
7.4.20.0030.01616.52
7.4.10.0030.01516.47
7.4.00.0120.01016.43
7.3.330.0000.00816.30
7.3.320.0000.00513.32
7.3.310.0070.00016.32
7.3.300.0030.00316.35
7.3.290.0080.00616.36
7.3.280.0140.00916.30
7.3.260.0050.01616.40
7.3.230.0040.01216.43
7.3.210.0070.01016.38
7.3.200.0130.00616.18
7.3.190.0090.00916.54
7.3.180.0120.00916.43
7.3.170.0130.00616.30
7.3.160.0130.00916.45
7.3.150.0100.01416.55
7.3.140.0100.01016.43
7.3.130.0130.01016.36
7.3.120.0150.00416.25
7.3.110.0040.01516.46
7.3.100.0070.01616.30
7.3.90.0120.01516.33
7.3.80.0090.01216.38
7.3.70.0080.01116.38
7.3.60.0040.01916.48
7.3.50.0100.01516.26
7.3.40.0100.01316.30
7.3.30.0120.00916.19
7.3.20.0100.01016.09
7.3.10.0640.00916.51
7.3.00.0170.00616.41
7.2.330.0060.01216.73
7.2.320.0060.01216.45
7.2.310.0120.00916.58
7.2.300.0130.00516.58
7.2.290.0210.00416.37
7.2.280.0060.01816.61
7.2.270.0030.01916.68
7.2.260.0110.01116.68
7.2.250.0090.01116.77
7.2.240.0090.01516.67
7.2.230.0120.00616.72
7.2.220.0170.00716.45
7.2.210.0120.00716.63
7.2.200.0110.00816.55
7.2.190.0140.01016.55
7.2.180.0160.01016.41
7.2.170.0070.01616.36
7.2.160.0070.01816.54
7.2.150.0120.01216.36
7.2.140.0170.00716.43
7.2.130.0140.01416.57
7.2.120.0100.00716.57
7.2.110.0100.01316.35
7.2.100.0040.01516.49
7.2.90.0150.00916.61
7.2.80.0120.00816.55
7.2.70.0120.00916.54
7.2.60.0100.01616.48
7.2.50.0150.00616.38
7.2.40.0130.00716.32
7.2.30.0070.01816.59
7.2.20.0060.01516.38
7.2.10.0160.01016.32
7.2.00.0170.00716.34

preferences:
29.02 ms | 403 KiB | 5 Q