3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(){ $foo = new Foo(); $foo->bar(); } bar();

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.120.0080.00019.06
8.3.110.0060.00320.94
8.3.100.0060.00916.66
8.3.90.0120.00326.77
8.3.80.0030.00716.75
8.3.70.0140.00716.58
8.3.60.0140.00318.54
8.3.50.0120.00521.14
8.3.40.0160.00618.57
8.3.30.0130.00318.72
8.3.20.0050.00318.87
8.3.10.0040.00419.82
8.3.00.0070.00020.80
8.2.240.0100.00717.24
8.2.230.0060.00322.58
8.2.220.0090.00637.54
8.2.210.0000.01526.77
8.2.200.0060.00316.63
8.2.190.0120.00318.42
8.2.180.0030.01125.92
8.2.170.0120.00318.83
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00020.90
8.2.120.0080.00026.35
8.2.110.0030.00622.26
8.2.100.0090.00318.04
8.2.90.0080.00019.16
8.2.80.0000.00917.97
8.2.70.0000.00917.38
8.2.60.0060.00317.92
8.2.50.0050.00518.10
8.2.40.0030.00720.45
8.2.30.0030.00620.64
8.2.20.0030.00617.54
8.2.10.0040.00417.98
8.2.00.0020.00517.98
8.1.300.0080.00817.74
8.1.290.0060.00330.84
8.1.280.0060.01225.92
8.1.270.0100.00324.66
8.1.260.0030.00328.09
8.1.250.0080.00028.09
8.1.240.0050.00323.84
8.1.230.0110.00017.42
8.1.220.0090.00017.74
8.1.210.0030.00718.77
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.84
8.1.150.0040.00418.75
8.1.140.0050.00319.44
8.1.130.0000.00717.45
8.1.120.0030.00517.35
8.1.110.0000.00717.33
8.1.100.0040.00317.22
8.1.90.0000.00817.22
8.1.80.0040.00417.32
8.1.70.0040.00417.18
8.1.60.0000.00817.40
8.1.50.0040.00417.48
8.1.40.0000.00817.43
8.1.30.0060.00317.42
8.1.20.0000.00817.59
8.1.10.0070.00017.44
8.1.00.0120.00017.36
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0070.00018.36
8.0.270.0030.00317.18
8.0.260.0080.00017.11
8.0.250.0080.00016.84
8.0.240.0030.00316.81
8.0.230.0030.00317.02
8.0.220.0070.00016.89
8.0.210.0070.00016.94
8.0.200.0050.00216.91
8.0.190.0040.00416.88
8.0.180.0030.00316.91
8.0.170.0030.00516.83
8.0.160.0080.00016.89
8.0.150.0000.00716.89
8.0.140.0050.00316.85
8.0.130.0050.00013.34
8.0.120.0040.00416.81
8.0.110.0050.00316.91
8.0.100.0080.00016.65
8.0.90.0070.00016.86
8.0.80.0110.00716.80
8.0.70.0040.00416.73
8.0.60.0000.00716.78
8.0.50.0000.00716.91
8.0.30.0040.01517.01
8.0.20.0090.00917.40
8.0.10.0000.00716.98
8.0.00.0110.00816.72
7.4.330.0000.00515.08
7.4.320.0000.00716.41
7.4.300.0070.00016.41
7.4.290.0000.00816.49
7.4.280.0040.00416.51
7.4.270.0040.00416.43
7.4.260.0070.00416.30
7.4.250.0000.00716.40
7.4.240.0040.00416.48
7.4.230.0000.00716.28
7.4.220.0060.01216.51
7.4.210.0070.01316.53
7.4.200.0000.00716.61
7.4.160.0130.00316.23
7.4.150.0130.00417.40
7.4.140.0040.01717.86
7.4.130.0090.01016.36
7.4.120.0050.01116.62
7.4.110.0120.00616.57
7.4.100.0130.01016.36
7.4.90.0080.00816.52
7.4.80.0080.01219.39
7.4.70.0060.01016.41
7.4.60.0130.00316.27
7.4.50.0090.00616.35
7.4.40.0080.01316.48
7.4.30.0120.00416.57
7.4.00.0090.00814.94
7.3.330.0030.00313.11
7.3.320.0000.00513.13
7.3.310.0000.00616.09
7.3.300.0070.00016.20
7.3.290.0050.01416.27
7.3.280.0110.00716.31
7.3.270.0090.00917.40
7.3.260.0100.01016.20
7.3.250.0110.00816.40
7.3.240.0100.01016.50
7.3.230.0090.01216.39
7.3.210.0150.00016.36
7.3.200.0080.00816.35
7.3.190.0060.01316.39
7.3.180.0130.00316.21
7.3.170.0070.01216.32
7.3.160.0090.00616.36
7.3.120.0060.01314.79
7.3.110.0100.00614.92
7.3.100.0100.01014.86
7.3.90.0030.00915.00
7.3.80.0000.01414.91
7.3.70.0070.00714.67
7.3.60.0090.00014.70
7.3.50.0090.00614.75
7.3.40.0090.00914.87
7.3.30.0090.00614.90
7.3.20.0110.00416.63
7.3.10.0100.00616.53
7.3.00.0060.00316.75
7.2.330.0140.00316.21
7.2.320.0140.00716.59
7.2.310.0130.00416.52
7.2.300.0030.01616.65
7.2.290.0150.00016.65
7.2.250.0050.01315.02
7.2.240.0090.00914.90
7.2.230.0030.01414.73
7.2.220.0030.00614.77
7.2.210.0100.00714.82
7.2.200.0000.01215.03
7.2.190.0100.00014.82
7.2.180.0120.00315.02
7.2.170.0080.00414.78
7.2.160.0070.00814.88
7.2.150.0100.00616.83
7.2.140.0090.00316.82
7.2.130.0070.01016.93
7.2.120.0080.00416.50
7.2.110.0070.01016.74
7.2.100.0100.00716.43
7.2.90.0030.00816.63
7.2.80.0090.00616.92
7.2.70.0000.01416.83
7.2.60.0080.00716.67
7.2.50.0070.01016.83
7.2.40.0030.01016.84
7.2.30.0000.01316.77
7.2.20.0060.01016.71
7.2.10.0140.00416.60
7.2.00.0110.00318.09
7.1.330.0000.01715.60
7.1.320.0080.00315.52
7.1.310.0060.00615.30
7.1.300.0100.00615.37
7.1.290.0120.00315.80
7.1.280.0040.00415.76
7.1.270.0030.01015.80
7.1.260.0040.00715.53
7.1.250.0030.00915.52
7.1.240.0100.00015.57
7.1.230.0000.01515.63
7.1.220.0060.00915.64
7.1.210.0040.00815.55
7.1.200.0170.00115.46
7.1.190.0000.01015.66
7.1.180.0060.00915.51
7.1.170.0080.00415.75
7.1.160.0040.00715.54
7.1.150.0040.01115.70
7.1.140.0030.00715.66
7.1.130.0090.00615.76
7.1.120.0030.01015.58
7.1.110.0100.00315.44
7.1.100.0130.00715.85
7.1.90.0070.00315.39
7.1.80.0040.00815.35
7.1.70.0060.00916.34
7.1.60.0050.01317.35
7.1.50.0080.01116.27
7.1.40.0000.01215.62
7.1.30.0000.01215.62
7.1.20.0030.00915.66
7.1.10.0040.00715.64
7.1.00.0030.04219.03
7.0.330.0040.00715.46
7.0.320.0070.00715.01
7.0.310.0030.01015.31
7.0.300.0070.00715.35
7.0.290.0030.00715.28
7.0.280.0090.00615.41
7.0.270.0040.00815.11
7.0.260.0040.00715.10
7.0.250.0030.00915.43
7.0.240.0070.00315.03
7.0.230.0040.00815.48
7.0.220.0120.00015.21
7.0.210.0060.00615.31
7.0.200.0050.00716.01
7.0.190.0060.00615.24
7.0.180.0060.00315.02
7.0.170.0030.01015.44
7.0.160.0090.00315.28
7.0.150.0060.00315.43
7.0.140.0030.00615.23
7.0.130.0100.00314.94
7.0.120.0030.01015.21
7.0.110.0100.00315.31
7.0.100.0040.01115.34
7.0.90.0070.00414.97
7.0.80.0070.00715.30
7.0.70.0100.00715.33
7.0.60.0130.03317.54
7.0.50.0250.03317.87
7.0.40.0400.03216.74
7.0.30.0080.04916.89
7.0.20.0080.04116.83
7.0.10.0150.04016.87
7.0.00.0150.04316.83
5.6.400.0060.00614.53
5.6.390.0000.01314.20
5.6.380.0130.00014.38
5.6.370.0040.00414.11
5.6.360.0060.00614.42
5.6.350.0140.00014.44
5.6.340.0030.00914.28
5.6.330.0100.00014.23
5.6.320.0030.00914.06
5.6.310.0120.00314.35
5.6.300.0030.01014.31
5.6.290.0000.01314.25
5.6.280.0070.03817.75
5.6.270.0000.00814.20
5.6.260.0000.00913.98
5.6.250.0040.00814.46
5.6.240.0000.01513.91
5.6.230.0030.01314.11
5.6.220.0070.00714.01
5.6.210.0090.04017.37
5.6.200.0250.03917.59
5.6.190.0290.03317.69
5.6.180.0170.03017.46
5.6.170.0100.03917.59
5.6.160.0130.03517.61
5.6.150.0180.04917.61
5.6.140.0160.03917.61
5.6.130.0150.04317.54
5.6.120.0120.03217.54
5.6.110.0080.03517.55
5.6.100.0140.03517.63
5.6.90.0280.03317.60
5.6.80.0220.03317.40
5.6.70.0290.03717.33
5.6.60.0230.03117.31
5.6.50.0180.03317.21
5.6.40.0200.03517.20
5.6.30.0120.03017.25
5.6.20.0220.02717.16
5.6.10.0220.03117.18
5.6.00.0260.03517.27
5.5.380.0000.01613.92
5.5.370.0090.00614.10
5.5.360.0100.00313.88
5.5.350.0220.03717.23
5.5.340.0200.03917.48
5.5.330.0310.04017.55
5.5.320.0170.03217.47
5.5.310.0100.04617.46
5.5.300.0180.03117.57
5.5.290.0100.03817.41
5.5.280.0110.03017.64
5.5.270.0130.03617.60
5.5.260.0230.03817.41
5.5.250.0250.03717.48
5.5.240.0180.03717.28
5.5.230.0220.04017.21
5.5.220.0260.03317.20
5.5.210.0180.03517.07
5.5.200.0250.03117.18
5.5.190.0080.03617.18
5.5.180.0100.03317.01
5.5.170.0040.00413.67
5.5.160.0140.02617.08
5.5.150.0050.03717.14
5.5.140.0190.03017.26
5.5.130.0170.03517.06
5.5.120.0190.03617.24
5.5.110.0150.03517.08
5.5.100.0220.03517.05
5.5.90.0180.03016.86
5.5.80.0170.03316.88
5.5.70.0180.03317.02
5.5.60.0170.03617.07
5.5.50.0260.03617.08
5.5.40.0240.02717.06
5.5.30.0240.02816.94
5.5.20.0330.02316.95
5.5.10.0230.02716.91
5.5.00.0210.04017.06

preferences:
30.2 ms | 403 KiB | 5 Q