3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __call($func, array $args) { echo "$func was called"; } } $f = new foo; echo $f-> I wish that PHP supported bare words,but this will have to do for now ();

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.0110.00716.61
8.3.60.0150.00618.30
8.3.50.0210.00022.94
8.3.40.0150.00618.72
8.3.30.0110.00318.80
8.3.20.0080.00020.21
8.3.10.0040.00423.51
8.3.00.0030.00619.13
8.2.180.0110.01116.50
8.2.170.0140.00322.96
8.2.160.0180.00320.35
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.01426.16
8.2.120.0070.00021.00
8.2.110.0060.00322.05
8.2.100.0070.00418.03
8.2.90.0070.00019.17
8.2.80.0030.00617.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00717.99
8.2.30.0060.00319.77
8.2.20.0030.00517.73
8.2.10.0030.00618.04
8.2.00.0070.00017.71
8.1.280.0130.00725.92
8.1.270.0060.00323.89
8.1.260.0000.00826.35
8.1.250.0030.00328.09
8.1.240.0080.00323.97
8.1.230.0090.00319.15
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00421.95
8.1.150.0000.00718.73
8.1.140.0030.00617.30
8.1.130.0040.00417.81
8.1.120.0070.00017.40
8.1.110.0040.00417.38
8.1.100.0070.00017.40
8.1.90.0070.00317.28
8.1.80.0000.00717.37
8.1.70.0000.00717.35
8.1.60.0040.00417.63
8.1.50.0080.00017.48
8.1.40.0040.00417.55
8.1.30.0060.00317.50
8.1.20.0000.00717.64
8.1.10.0040.00417.44
8.1.00.0000.00817.49
8.0.300.0000.00818.77
8.0.290.0050.00216.75
8.0.280.0030.00318.48
8.0.270.0030.00617.24
8.0.260.0060.00017.16
8.0.250.0050.00316.95
8.0.240.0060.00016.93
8.0.230.0060.00016.89
8.0.220.0040.00416.90
8.0.210.0000.00716.88
8.0.200.0050.00216.93
8.0.190.0000.00716.87
8.0.180.0000.00716.83
8.0.170.0040.00416.86
8.0.160.0050.00316.95
8.0.150.0000.00716.64
8.0.140.0050.00216.73
8.0.130.0060.00313.36
8.0.120.0080.00016.83
8.0.110.0040.00416.86
8.0.100.0000.00716.87
8.0.90.0030.00316.71
8.0.80.0120.00316.94
8.0.70.0040.00416.82
8.0.60.0040.00416.93
8.0.50.0020.00516.69
8.0.30.0110.01017.10
8.0.20.0060.01317.40
8.0.10.0080.00016.88
8.0.00.0090.01016.69
7.4.330.0030.00315.00
7.4.320.0000.00616.55
7.4.300.0030.00316.50
7.4.290.0070.00016.56
7.4.280.0080.00016.59
7.4.270.0030.00316.54
7.4.260.0060.00316.58
7.4.250.0000.00916.35
7.4.240.0030.00316.54
7.4.230.0000.00716.56
7.4.220.0110.01416.64
7.4.210.0110.00316.52
7.4.200.0030.00316.56
7.4.160.0080.00816.37
7.4.150.0070.01717.40
7.4.140.0130.00517.86
7.4.130.0100.00816.66
7.4.120.0060.01016.38
7.4.110.0120.00316.57
7.4.100.0130.00416.43
7.4.90.0040.01316.48
7.4.80.0080.00819.39
7.4.70.0090.00616.51
7.4.60.0130.00316.47
7.4.50.0000.00816.36
7.4.40.0110.00616.63
7.4.30.0150.00016.36
7.4.00.0050.01015.04
7.3.330.0030.00313.27
7.3.320.0000.00513.27
7.3.310.0040.00316.27
7.3.300.0030.00316.20
7.3.290.0070.01416.26
7.3.280.0050.01116.24
7.3.270.0030.01417.40
7.3.260.0120.01516.24
7.3.250.0100.00916.35
7.3.240.0150.01016.46
7.3.230.0000.01516.39
7.3.210.0130.00916.32
7.3.200.0110.01219.39
7.3.190.0060.01516.43
7.3.180.0120.00316.39
7.3.170.0030.01216.47
7.3.160.0160.00016.36
7.3.120.0040.01514.87
7.3.110.0030.01314.87
7.3.100.0140.00315.02
7.3.90.0000.01014.98
7.3.80.0030.00715.12
7.3.70.0090.00414.79
7.3.60.0070.00714.76
7.3.50.0000.01414.81
7.3.40.0070.00714.80
7.3.30.0100.00314.80
7.3.20.0060.01016.67
7.3.10.0120.00316.51
7.3.00.0070.01016.27
7.2.330.0090.00916.63
7.2.320.0100.00616.51
7.2.310.0150.00616.71
7.2.300.0030.01416.72
7.2.290.0100.01416.38
7.2.250.0150.00314.80
7.2.240.0130.00615.04
7.2.230.0120.00014.79
7.2.220.0060.01014.84
7.2.210.0070.00715.03
7.2.200.0070.00714.81
7.2.190.0060.00915.12
7.2.180.0040.01114.86
7.2.170.0060.00814.80
7.2.80.0070.00716.30
7.2.60.0040.00816.96
7.2.00.0000.01119.52
7.1.330.0030.01315.99
7.1.320.0080.00815.52
7.1.310.0070.01015.80
7.1.300.0060.00615.76
7.1.290.0060.00615.54
7.1.280.0090.00615.82
7.1.270.0040.01115.65
7.1.260.0030.01215.75
7.1.200.0070.00715.83
7.1.100.0060.00617.85
7.1.70.0030.00317.25
7.1.60.0140.01019.40
7.1.50.0060.00916.86
7.1.00.0000.08022.40
7.0.200.0040.00416.46
7.0.140.0030.07021.93
7.0.60.0100.04319.91
7.0.50.0070.04317.83
7.0.40.0170.08020.09
7.0.30.0300.07020.30
7.0.20.0230.07720.30
7.0.10.0100.08320.25
7.0.00.0000.09020.07
5.6.280.0070.06720.86
5.6.210.0100.06720.73
5.6.200.0070.06018.15
5.6.190.0100.07720.61
5.6.180.0570.06020.47
5.6.170.0170.05020.51
5.6.160.0030.04320.39
5.6.150.0100.05318.16
5.6.140.0170.07018.21
5.6.130.0030.04318.19
5.6.120.0130.08021.04
5.6.110.0070.04321.12
5.6.100.0100.08321.00
5.6.90.0130.04020.98
5.6.80.0000.04020.39
5.5.350.0170.05720.43
5.5.340.0000.07718.05
5.5.330.0030.09020.41
5.5.320.0130.04720.37
5.5.310.0400.07020.28
5.5.300.0000.09018.08
5.5.290.0070.07317.98
5.5.280.0030.04320.66
5.5.270.0030.09020.75
5.5.260.0000.09020.64
5.5.250.0030.04020.50
5.5.240.0030.06320.15
5.4.450.0070.04719.41
5.4.440.0000.04319.57
5.4.430.0070.04719.46
5.4.420.0030.06019.48
5.4.410.0000.08319.31
5.4.400.0100.03319.16
5.4.390.0070.03719.24
5.4.380.0100.04718.85
5.4.370.0100.03318.87
5.4.360.0170.06719.13
5.4.350.0070.07319.08
5.4.340.0230.05719.15
5.4.320.0030.07319.04
5.4.310.0030.08019.25
5.4.300.0130.06719.05
5.4.290.0070.03718.85
5.4.280.0070.03719.14
5.4.270.0070.04318.85
5.4.260.0100.07019.28
5.4.250.0130.04318.96
5.4.240.0070.04319.23
5.4.230.0030.05319.11
5.4.220.0030.04319.07
5.4.210.0030.07718.86
5.4.200.0070.06719.20
5.4.190.0030.06018.93
5.4.180.0030.05019.23
5.4.170.0070.07719.19
5.4.160.0130.07318.84
5.4.150.0100.03719.18
5.4.140.0030.04016.26
5.4.130.0000.07316.45
5.4.120.0100.06016.50
5.4.110.0000.04316.43
5.4.100.0100.05716.28
5.4.90.0070.05016.40
5.4.80.0070.03316.41
5.4.70.0030.03716.29
5.4.60.0030.03716.64
5.4.50.0100.03316.45
5.4.40.0070.03716.50
5.4.30.0130.07016.51
5.4.20.0100.06316.40
5.4.10.0030.06016.27
5.4.00.0130.06015.89
5.3.290.0070.06314.73
5.3.280.0070.04014.66
5.3.270.0070.04714.61
5.3.260.0130.07014.59
5.3.250.0100.03314.74
5.3.240.0100.03014.53
5.3.230.0030.04014.51
5.3.220.0030.04014.63
5.3.210.0070.04714.50
5.3.200.0030.03714.48
5.3.190.0100.07314.66
5.3.180.0000.05314.63
5.3.170.0000.04014.61
5.3.160.0070.04014.56
5.3.150.0100.07314.47
5.3.140.0100.04714.62
5.3.130.0000.08014.56
5.3.120.0000.08014.60
5.3.110.0100.07314.59
5.3.100.0030.07014.19
5.3.90.0030.04014.04
5.3.80.0070.03314.07
5.3.70.0000.06714.06
5.3.60.0100.03314.01
5.3.50.0070.06013.93
5.3.40.0070.06314.02
5.3.30.0070.04313.87
5.3.20.0070.03313.76
5.3.10.0030.05013.60
5.3.00.0070.07313.67
5.2.170.0130.03311.30
5.2.160.0070.06011.15
5.2.150.0030.05011.16
5.2.140.0300.01311.15
5.2.130.0130.05311.06
5.2.120.0000.06011.12
5.2.110.0000.05311.12
5.2.100.0030.06711.05
5.2.90.0100.04311.13
5.2.80.0000.04011.11
5.2.70.0000.06711.25
5.2.60.0000.03011.06
5.2.50.0070.05010.98
5.2.40.0030.02711.03
5.2.30.0070.06011.02
5.2.20.0030.06310.95
5.2.10.0100.06010.86
5.2.00.0000.03010.68
5.1.60.0070.0239.96
5.1.50.0070.05310.06
5.1.40.0030.0309.94
5.1.30.0070.04710.33
5.1.20.0030.05710.32
5.1.10.0030.02710.11
5.1.00.0000.04010.13
5.0.50.0070.0238.70
5.0.40.0030.0408.32
5.0.30.0070.0278.39
5.0.20.0070.0308.22
5.0.10.0000.0238.17
5.0.00.0000.0508.14
4.4.90.0000.0207.49
4.4.80.0000.0177.49
4.4.70.0030.0277.49
4.4.60.0000.0277.49
4.4.50.0030.0277.49
4.4.40.0030.0507.49
4.4.30.0100.0277.49
4.4.20.0000.0207.49
4.4.10.0000.0307.49
4.4.00.0000.0307.49
4.3.110.0000.0177.49
4.3.100.0000.0177.49
4.3.90.0000.0177.49
4.3.80.0070.0307.49
4.3.70.0000.0337.49
4.3.60.0030.0277.49
4.3.50.0030.0207.49
4.3.40.0000.0537.49
4.3.30.0030.0337.49
4.3.20.0000.0337.49
4.3.10.0000.0377.49
4.3.00.0030.0337.49

preferences:
32.56 ms | 401 KiB | 5 Q