3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Foobar { public function __toString() { $this->$this; } } $foobar = new Foobar(); (string) $foobar;

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)
7.4.60.0240.00925.39
7.4.50.0100.00725.44
7.4.00.0130.00823.70
7.3.180.0100.01725.12
7.3.50.0180.00223.52
7.3.40.0170.01523.50
7.3.30.0150.01123.62
7.3.20.0300.00723.45
7.3.10.0200.00923.52
7.3.00.0190.00723.64
7.2.180.0150.01023.51
7.2.170.0170.01123.70
7.2.160.0240.00223.76
7.2.150.0210.01023.73
7.2.140.0260.01023.77
7.2.130.0290.00923.63
7.2.120.0230.00823.72
7.2.110.0190.00323.81
7.2.100.0140.01323.72
7.2.90.0150.01023.67
7.2.80.0140.01223.97
7.2.70.0500.01323.75
7.2.60.0190.01123.81
7.2.50.0180.01023.68
7.2.40.0500.00823.89
7.2.30.0180.00323.76
7.2.20.0280.00823.73
7.2.10.0260.00723.87
7.2.00.0130.01723.73
7.1.280.0260.00822.82
7.1.270.0160.00922.82
7.1.260.0180.00622.53
7.1.250.0210.00722.79
7.1.240.0200.00822.39
7.1.230.0210.00422.35
7.1.220.0270.00722.46
7.1.210.0390.01022.38
7.1.200.0270.00922.61
7.1.190.0290.00321.98
7.1.180.0320.00422.38
7.1.170.0190.00322.67
7.1.160.0250.01922.46
7.1.150.0250.00722.23
7.1.140.0290.00722.62
7.1.130.0240.00322.70
7.1.120.0210.01822.48
7.1.110.0190.00922.32
7.1.100.0120.01522.37
7.1.90.0340.01122.43
7.1.80.0350.01122.32
7.1.70.0250.01422.69
7.1.60.0150.00622.32
7.1.50.0240.00322.77
7.1.40.0110.01122.72
7.1.30.0200.01022.49
7.1.20.0350.01022.49
7.1.10.0210.00622.46
7.1.00.0150.01222.18
7.0.330.0210.01422.57
7.0.320.0320.00922.69
7.0.310.0320.01322.88
7.0.300.0330.00922.85
7.0.290.0310.01722.57
7.0.280.0310.01522.75
7.0.270.0230.00922.84
7.0.260.0280.01422.70
7.0.250.0350.00622.99
7.0.240.0230.02323.07
7.0.230.0260.01822.84
7.0.220.0340.00823.09
7.0.210.0180.00722.84
7.0.200.1950.00622.83
7.0.190.0300.00022.61
7.0.180.0230.01122.95
7.0.170.0290.00622.64
7.0.160.0280.02122.93
7.0.150.0290.00523.14
7.0.140.0250.00923.00
7.0.130.0250.01323.03
7.0.120.0220.01622.65
7.0.110.0220.00823.07
7.0.100.0270.00023.00
7.0.90.0240.00722.75
7.0.80.0260.00822.97
7.0.70.0270.01022.94
7.0.60.0300.00322.98
7.0.50.0320.01023.20
7.0.40.0190.01122.82
7.0.30.0300.01523.01
7.0.20.0400.00423.17
7.0.10.0270.00423.02
7.0.00.0350.00323.13
5.6.400.0340.00924.21
5.6.390.0260.01324.10
5.6.380.0290.01123.82
5.6.370.0280.00624.34
5.6.360.0290.00924.45
5.6.350.0310.01024.64
5.6.340.0190.01324.27
5.6.330.0370.00924.34
5.6.320.0240.00824.18
5.6.310.0250.01024.17
5.6.300.0160.01324.40
5.6.290.0300.00024.60
5.6.280.0240.01624.54
5.6.270.0270.01424.41
5.6.260.0200.01024.10
5.6.250.0160.01324.41
5.6.240.0310.00524.25
5.6.230.0150.02724.36
5.6.220.0220.01824.39
5.6.210.0230.00324.28
5.6.200.0200.02024.33
5.6.190.0310.01024.54
5.6.180.0210.01024.38
5.6.170.0240.01224.41
5.6.160.0140.01324.08
5.6.150.0330.00724.56
5.6.140.0170.01124.49
5.6.130.0210.01724.42
5.6.120.0340.00324.48
5.6.110.0180.01124.30
5.6.100.0320.01024.52
5.6.90.0230.01324.47
5.6.80.0250.00424.27
5.6.70.0280.01224.32
5.6.60.0260.01324.33
5.6.50.0280.01224.27
5.6.40.0240.00924.28
5.6.30.0190.01924.26
5.6.20.0140.01124.48
5.6.10.0170.01224.21
5.6.00.0150.02524.14
5.5.380.0220.00624.35
5.5.370.0250.00724.30
5.5.360.0270.01124.16
5.5.350.0220.01524.36
5.5.340.0190.01023.99
5.5.330.0140.01724.13
5.5.320.0240.00424.37
5.5.310.0290.00524.13
5.5.300.0110.01824.13
5.5.290.0290.00524.42
5.5.280.0140.01724.22
5.5.270.0240.00323.93
5.5.260.0170.01024.36
5.5.250.0290.00324.39
5.5.240.0330.00724.09
5.5.230.0150.01124.07
5.5.220.0280.01424.06
5.5.210.0190.01524.19
5.5.200.0250.00624.30
5.5.190.0320.01123.91
5.5.180.0150.00924.27
5.5.170.0070.02224.16
5.5.160.0180.00924.29
5.5.150.0310.00024.14
5.5.140.0310.00024.07
5.5.130.0330.00724.02
5.5.120.0220.01624.27
5.5.110.0360.00524.32
5.5.100.0250.01123.88
5.5.90.0230.00824.16
5.5.80.0210.00924.29
5.5.70.0300.01224.04
5.5.60.0220.01623.91
5.5.50.0190.00923.89
5.5.40.0340.01124.12
5.5.30.0290.00724.23
5.5.20.0220.01124.31
5.5.10.0340.00924.14
5.5.00.0240.00523.93
5.4.450.0190.01621.33
5.4.440.0080.01721.39
5.4.430.0250.00021.36
5.4.420.0140.01421.14
5.4.410.0260.00020.92
5.4.400.0160.01321.06
5.4.390.0180.00621.03
5.4.380.0170.00720.96
5.4.370.0170.01420.88
5.4.360.0200.00820.67
5.4.350.0090.01521.18
5.4.340.0210.00020.97
5.4.330.0230.00520.79
5.4.320.0150.00421.09
5.4.310.0220.01021.06
5.4.300.0220.01121.09
5.4.290.0140.01721.04
5.4.280.0200.00721.25
5.4.270.0200.00921.15
5.4.260.0200.00920.89
5.4.250.0230.00320.75
5.4.240.0100.01021.23
5.4.230.0230.01721.08
5.4.220.0270.00620.98
5.4.210.0210.01220.80
5.4.200.0220.00420.89
5.4.190.0170.00621.04
5.4.180.0110.01221.00
5.4.170.0180.00320.95
5.4.160.0240.00620.95
5.4.150.0140.01121.00
5.4.140.0150.00421.32
5.4.130.0240.00021.08
5.4.120.0160.00921.27
5.4.110.0090.01820.85
5.4.100.0170.00521.05
5.4.90.0220.00621.19
5.4.80.0120.00821.12
5.4.70.0210.00021.09
5.4.60.0220.00020.89
5.4.50.0160.01621.09
5.4.40.0130.00921.03
5.4.30.0190.00621.27
5.4.20.0150.00621.13
5.4.10.0420.00320.88
5.4.00.0190.01021.07
5.3.290.0220.00020.78
5.3.280.0150.00420.74
5.3.270.0100.01320.73
5.3.260.0240.00320.80
5.3.250.0180.00620.75
5.3.240.0180.00620.64
5.3.230.0260.00920.71
5.3.220.0160.01420.38
5.3.210.0220.00420.37
5.3.200.0120.01220.46
5.3.190.0250.00820.32
5.3.180.0270.00320.63
5.3.170.0130.01020.52
5.3.160.0200.00620.67
5.3.150.0150.00920.39
5.3.140.0230.00420.58
5.3.130.0140.01420.56
5.3.120.0120.00620.57
5.3.110.0150.00720.59
5.3.100.0170.00020.34
5.3.90.0210.00020.67
5.3.80.0170.01720.43
5.3.70.0190.00620.43
5.3.60.0140.00520.45
5.3.50.0150.00420.35
5.3.40.0280.00720.08
5.3.30.0160.01220.34
5.3.20.0200.01020.46
5.3.10.0200.00420.11
5.3.00.0170.00620.09
5.2.170.0180.01819.29
5.2.160.0310.00719.40
5.2.150.0120.01919.17
5.2.140.0220.00519.35
5.2.130.0170.00619.29
5.2.120.0140.01819.29
5.2.110.0110.01119.32
5.2.100.0120.00819.30
5.2.90.0180.00419.36
5.2.80.0110.01219.16
5.2.70.0150.00919.31
5.2.60.0090.00919.27
5.2.50.0130.01319.32
5.2.40.0190.00419.40
5.2.30.0280.00619.26
5.2.20.0150.01119.03
5.2.10.0190.00919.17
5.2.00.0250.00419.12
5.1.60.0070.00013.21
5.1.50.0080.00013.21
5.1.40.0100.00213.21
5.1.30.0000.00813.21
5.1.20.0030.00513.21
5.1.10.0050.00513.21
5.1.00.0140.00013.21
5.0.50.0100.00313.21
5.0.40.0090.00013.21
5.0.30.0100.00213.21
5.0.20.0060.00813.21
5.0.10.0080.00513.21
5.0.00.0110.00413.21
4.4.90.0000.00513.21
4.4.80.0100.00013.21
4.4.70.0070.00513.21
4.4.60.0070.00413.21
4.4.50.0050.00313.21
4.4.40.0080.00013.21
4.4.30.0060.00313.21
4.4.20.0050.00013.21
4.4.10.0000.00513.21
4.4.00.0050.00313.21
4.3.110.0030.00313.21
4.3.100.0040.00313.21
4.3.90.0060.00313.21
4.3.80.0040.00813.21
4.3.70.0000.00813.21
4.3.60.0050.00813.21
4.3.50.0080.00213.21
4.3.40.0030.00813.21
4.3.30.0080.00313.21
4.3.20.0050.00013.21
4.3.10.0000.00613.21
4.3.00.0070.00313.21