3v4l.org

run code in 300+ PHP versions simultaneously
<?php function charge(int $amount) { // charge customer for $amount; printf('charged customer %d for the product', $amount); } $amount = '400'; // $database->select('price')->from('products', 'p')->where('p.id = ?')->execute($productId); // .... charge((int) $amout);

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.5.30.0030.00520.25
8.5.20.0100.00720.25
8.5.10.0110.00820.29
8.5.00.0140.00620.20
8.4.180.0120.00925.63
8.4.170.0090.01223.71
8.4.160.0130.01323.75
8.4.150.0090.00416.93
8.4.140.0130.00817.59
8.4.130.0130.00717.85
8.4.120.0090.01120.36
8.4.110.0100.01018.98
8.4.100.0120.00917.53
8.4.90.0140.00617.55
8.4.80.0110.00822.34
8.4.70.0100.01217.72
8.4.60.0100.01220.57
8.4.50.0120.00818.71
8.4.40.0200.00019.51
8.4.30.0090.01020.45
8.4.20.0100.01019.61
8.4.10.0030.01619.41
8.3.300.0130.00720.84
8.3.290.0130.00920.84
8.3.280.0150.00918.47
8.3.270.0120.00816.65
8.3.260.0120.00916.77
8.3.250.0050.00318.75
8.3.240.0090.00716.48
8.3.230.0120.00816.64
8.3.220.0130.00518.79
8.3.210.0110.00616.73
8.3.200.0070.00216.78
8.3.190.0010.00717.15
8.3.180.0100.00818.94
8.3.170.0070.01117.01
8.3.160.0140.00416.78
8.3.150.0070.01316.61
8.3.140.0000.01918.94
8.3.130.0000.00818.29
8.3.120.0050.00318.79
8.3.110.0040.00420.94
8.3.100.0030.01216.54
8.3.90.0080.00026.77
8.3.80.0000.01016.50
8.3.70.0150.00316.88
8.3.60.0120.00316.48
8.3.50.0060.00920.29
8.3.40.0070.00718.82
8.3.30.0150.00618.75
8.3.20.0050.00324.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.300.0130.00718.71
8.2.290.0140.00720.32
8.2.280.0110.01018.31
8.2.270.0090.00916.55
8.2.260.0120.00617.06
8.2.250.0050.00219.02
8.2.240.0070.00317.05
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0070.00026.77
8.2.200.0030.00716.88
8.2.190.0070.00716.58
8.2.180.0060.00925.92
8.2.170.0070.00718.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00619.38
8.2.110.0100.00019.31
8.2.100.0000.01217.78
8.2.90.0050.00317.78
8.2.80.0040.00418.03
8.2.70.0040.00417.50
8.2.60.0040.01117.24
8.2.50.0060.00317.55
8.2.40.0050.00519.48
8.2.30.0030.00518.04
8.2.20.0000.00720.42
8.2.10.0040.00417.58
8.2.00.0000.00719.19
8.1.340.0100.01319.80
8.1.330.0130.00516.46
8.1.320.0120.00715.94
8.1.310.0080.00016.50
8.1.300.0070.01120.05
8.1.290.0070.00430.84
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0030.00626.35
8.1.250.0030.00528.09
8.1.240.0060.00322.30
8.1.230.0060.00622.62
8.1.220.0000.00817.74
8.1.210.0030.00518.91
8.1.200.0060.00317.23
8.1.190.0050.00317.13
8.1.180.0000.00718.10
8.1.170.0040.00417.82
8.1.160.0080.00018.72
8.1.150.0000.00718.56
8.1.140.0040.00417.28
8.1.130.0000.00818.68
8.1.120.0000.00717.46
8.1.110.0080.00017.37
8.1.100.0000.00717.27
8.1.90.0040.00417.41
8.1.80.0030.00617.37
8.1.70.0030.00317.34
8.1.60.0040.00417.53
8.1.50.0000.00717.39
8.1.40.0080.00017.56
8.1.30.0080.00817.59
8.1.20.0220.00617.61
8.1.10.0300.00017.32
8.1.00.0190.00817.38
8.0.300.0000.00719.96
8.0.290.0070.00016.63
8.0.280.0030.00318.37
8.0.270.0040.00416.80
8.0.260.0000.00618.40
8.0.250.0090.00016.90
8.0.240.0060.00316.83
8.0.230.0000.00716.95
8.0.220.0050.00216.77
8.0.210.0030.00316.87
8.0.200.0060.00016.93
8.0.190.0000.00816.80
8.0.180.0000.01016.79
8.0.170.0040.00416.87
8.0.160.0160.00316.80
8.0.150.0130.00916.79
8.0.140.0220.00016.73
8.0.130.0140.00716.63
8.0.120.0190.00316.84
8.0.110.0160.00516.85
8.0.100.0110.00916.65
8.0.90.0140.00716.82
8.0.80.0190.00316.77
8.0.70.0170.00516.71
8.0.60.0170.00416.68
8.0.50.0210.00416.76
8.0.30.0170.00416.84
8.0.20.0240.00016.85
8.0.10.0090.01416.96
7.4.330.0020.00215.55
7.4.320.0030.00316.49
7.4.300.0090.00016.49
7.4.290.0040.00416.42
7.4.280.0170.00716.48
7.4.270.0200.00316.47
7.4.260.0220.00316.53
7.4.250.0270.00016.59
7.4.240.0170.00816.60
7.4.230.0200.00516.53
7.4.220.0230.00016.48
7.4.210.0150.00716.61
7.4.200.0180.00316.44
7.4.190.0140.00716.55
7.4.180.0150.00616.62
7.4.160.0130.00816.62
7.4.150.0180.00516.39
7.4.140.0160.00616.52
7.4.130.0140.01016.27
7.4.120.0200.00316.27
7.4.110.0140.00716.38
7.4.100.0180.00316.59
7.4.90.0200.00416.40
7.4.80.0220.00416.37
7.4.70.0200.00316.23
7.4.60.0140.00716.36
7.4.50.0160.00716.36
7.4.40.0160.00416.29
7.4.30.0130.00716.43
7.4.20.0190.00516.34
7.4.10.0190.00316.26
7.4.00.0170.00316.28

preferences:
49.57 ms | 1254 KiB | 5 Q