3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function(string $thing){ echo $thing; }) (new class { function __toString() { return 'thing'; } }); expects: 'thing';

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.70.0140.00716.75
8.3.60.0150.00418.16
8.3.50.0080.01021.01
8.3.40.0140.00718.50
8.3.30.0100.01018.50
8.3.20.0040.00420.09
8.3.10.0040.01121.77
8.3.00.0090.00020.16
8.2.180.0170.00318.29
8.2.170.0040.01122.96
8.2.160.0140.00419.20
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0030.00617.38
8.2.110.0030.00622.26
8.2.100.0080.00417.72
8.2.90.0050.00317.72
8.2.80.0000.00819.00
8.2.70.0000.00817.92
8.2.60.0070.00017.91
8.2.50.0040.00418.10
8.2.40.0000.00720.41
8.2.30.0060.00322.45
8.2.20.0080.00017.68
8.2.10.0040.00418.04
8.2.00.0000.00817.95
8.1.280.0140.00725.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.18
8.1.230.0080.00320.85
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0000.00918.64
8.1.160.0000.00722.05
8.1.150.0050.00518.70
8.1.140.0050.00517.39
8.1.130.0070.00017.74
8.1.120.0070.00017.40
8.1.110.0000.00717.25
8.1.100.0000.00717.37
8.1.90.0040.00417.30
8.1.80.0000.00717.27
8.1.70.0040.00417.42
8.1.60.0040.00417.40
8.1.50.0040.00417.45
8.1.40.0040.00417.38
8.1.30.0040.00417.50
8.1.20.0050.00217.58
8.1.10.0070.00017.52
8.1.00.0060.00317.45
8.0.300.0000.00820.21
8.0.290.0000.00816.88
8.0.280.0040.00418.42
8.0.270.0030.00317.20
8.0.260.0000.00617.16
8.0.250.0050.00317.07
8.0.240.0030.00316.90
8.0.230.0030.00317.02
8.0.220.0080.00016.87
8.0.210.0040.00416.93
8.0.200.0000.00717.03
8.0.190.0000.00817.07
8.0.180.0030.00416.86
8.0.170.0030.00717.02
8.0.160.0000.00716.98
8.0.150.0050.00216.89
8.0.140.0000.00716.76
8.0.130.0060.00013.30
8.0.120.0000.00716.87
8.0.110.0080.00016.86
8.0.100.0050.00316.86
8.0.90.0070.00016.91
8.0.80.0060.00916.98
8.0.70.0040.00416.81
8.0.60.0090.00016.79
8.0.50.0000.00716.77
8.0.30.0070.01217.11
8.0.20.0120.00717.40
8.0.10.0030.00516.96
8.0.00.0080.01116.70
7.4.330.0020.00215.14
7.4.320.0030.00316.48
7.4.300.0060.00016.39
7.4.290.0000.00716.45
7.4.280.0070.00016.49
7.4.270.0030.00316.39
7.4.260.0070.00016.40
7.4.250.0040.00416.41
7.4.240.0030.00516.54
7.4.230.0000.00716.38
7.4.220.0170.00316.68
7.4.210.0070.00716.63
7.4.200.0030.00316.67
7.4.160.0080.00816.60
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0060.01116.58
7.4.120.0070.01516.49
7.4.110.0070.01116.32
7.4.100.0100.01016.37
7.4.90.0150.01116.30
7.4.80.0030.01719.39
7.4.70.0080.00816.28
7.4.60.0130.00316.30
7.4.50.0030.00516.36
7.4.40.0070.01716.62
7.4.30.0170.00016.39
7.4.00.0090.00615.10
7.3.330.0020.00213.28
7.3.320.0000.00513.09
7.3.310.0100.00016.34
7.3.300.0000.00716.14
7.3.290.0050.01216.30
7.3.280.0070.01216.29
7.3.270.0110.00617.40
7.3.260.0060.01316.56
7.3.250.0110.00816.45
7.3.240.0130.01016.31
7.3.230.0120.00916.39
7.3.210.0140.00416.35
7.3.200.0120.00416.62
7.3.190.0070.01016.43
7.3.180.0080.00816.66
7.3.170.0130.00616.63
7.3.160.0060.01216.53
7.2.330.0100.01016.41
7.2.320.0130.01716.48
7.2.310.0130.00916.67
7.2.300.0090.01216.56
7.2.290.0090.00916.38
7.2.60.0100.00317.12
7.2.00.0060.00919.39
7.1.200.0110.00015.73
7.1.100.0070.00718.11
7.1.70.0000.00916.68
7.1.60.0030.02119.29
7.1.50.0130.00716.57
7.1.00.0000.08022.42
7.0.200.0000.00816.71
7.0.60.0100.07719.75
7.0.50.0000.04317.97
7.0.40.0100.08020.15
7.0.30.0300.07320.17
7.0.20.0170.05020.23
7.0.10.0030.05720.32
7.0.00.0100.09020.20
5.6.280.0070.06721.05
5.6.210.0070.07320.52
5.6.200.0130.07718.16
5.6.190.0070.04720.41
5.6.180.0400.06020.46
5.6.170.0170.04320.58
5.6.160.0030.06320.39
5.6.150.0030.04318.23
5.6.140.0100.07318.18
5.6.130.0030.04318.18
5.6.120.0200.07721.02
5.6.110.0000.09320.98
5.6.100.0070.06320.99
5.6.90.0070.04021.02
5.6.80.0100.07320.54
5.5.350.0300.07720.46
5.5.340.0030.05718.05
5.5.330.0130.07720.43
5.5.320.0230.04720.30
5.5.310.0070.04720.36
5.5.300.0000.04017.95
5.5.290.0130.04317.99
5.5.280.0100.04720.87
5.5.270.0070.04020.68
5.5.260.0200.06320.77
5.5.250.0070.04720.78
5.5.240.0070.07320.12
5.4.450.0700.06019.63
5.4.440.0830.05319.60
5.4.430.0830.04319.57
5.4.420.0700.06019.46
5.4.410.0700.05319.47
5.4.400.0670.06019.15
5.4.390.0900.05319.25
5.4.380.0730.05019.16
5.4.370.0800.05019.02
5.4.360.0900.05319.14
5.4.350.1000.06019.14
5.4.340.0800.05318.98
5.4.320.0830.05319.30
5.4.310.0830.04319.14
5.4.300.0730.05319.25
5.4.290.0730.05319.14
5.4.280.0730.05018.97
5.4.270.0730.05019.27
5.4.260.0830.05319.14
5.4.250.0970.04719.13
5.4.240.0770.04719.13
5.4.230.0700.05319.27
5.4.220.0870.04019.31
5.4.210.0730.04719.24
5.4.200.0730.05019.12
5.4.190.0800.04319.24
5.4.180.0700.05019.23
5.4.170.0730.04719.00
5.4.160.0800.04018.86
5.4.150.0700.05718.81
5.4.140.0700.05316.36
5.4.130.0600.05316.50
5.4.120.0800.04016.73
5.4.110.0670.05316.54
5.4.100.0830.05016.62
5.4.90.0870.04716.61
5.4.80.0370.05016.59
5.4.70.0070.05716.44
5.4.60.0270.06716.43
5.4.50.0230.06316.34
5.4.40.0270.06716.40
5.4.30.0030.06716.51
5.4.20.0030.06716.53
5.4.10.0330.05316.53

preferences:
62 ms | 401 KiB | 5 Q