3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $bar = 'baz'; public static $baz = 'bar'; } $foo = new foo; $array = array('key' => 'value'); echo <<<EOL ${array['key']} $foo->bar foo::$baz {foo::$baz} EOL; ?>

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.60.0040.01118.55
8.3.50.0090.00922.05
8.3.40.0120.00318.71
8.3.30.0100.00318.84
8.3.20.0090.00918.91
8.3.10.0000.00821.17
8.3.00.0040.00423.48
8.2.180.0140.00718.29
8.2.170.0040.01122.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.66
8.2.110.0000.00920.53
8.2.100.0040.00817.79
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0030.00518.16
8.2.30.0000.00721.04
8.2.20.0040.00417.66
8.2.10.0040.00417.79
8.2.00.0000.01017.72
8.1.280.0100.00725.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.59
8.1.230.0070.00420.85
8.1.220.0050.00518.77
8.1.210.0030.00518.89
8.1.200.0040.00417.22
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0030.00618.73
8.1.150.0070.00018.63
8.1.140.0040.00417.38
8.1.130.0000.00717.82
8.1.120.0000.00717.27
8.1.110.0040.00417.36
8.1.100.0000.00717.29
8.1.90.0040.00417.40
8.1.80.0070.00017.29
8.1.70.0050.00217.29
8.1.60.0000.00817.47
8.1.50.0080.00017.41
8.1.40.0000.00717.36
8.1.30.0040.00417.58
8.1.20.0040.00417.60
8.1.10.0000.00717.56
8.1.00.0050.00317.48
8.0.300.0070.00019.80
8.0.290.0070.00016.91
8.0.280.0070.00018.45
8.0.270.0000.00717.18
8.0.260.0060.00016.93
8.0.250.0080.00017.05
8.0.240.0070.00017.05
8.0.230.0040.00416.91
8.0.220.0040.00416.92
8.0.210.0070.00016.94
8.0.200.0040.00416.88
8.0.190.0000.00916.87
8.0.180.0040.00416.99
8.0.170.0050.00316.99
8.0.160.0000.00717.02
8.0.150.0000.00716.83
8.0.140.0000.00716.90
8.0.130.0030.00313.49
8.0.120.0040.00416.79
8.0.110.0030.00617.00
8.0.100.0040.00416.95
8.0.90.0070.00016.91
8.0.80.0030.01717.00
8.0.70.0040.00316.77
8.0.60.0040.00416.81
8.0.50.0040.00416.94
8.0.30.0150.00517.06
8.0.20.0080.01017.40
8.0.10.0060.00317.02
8.0.00.0110.00916.67
7.4.330.0050.00014.75
7.4.320.0060.00016.56
7.4.300.0040.00416.34
7.4.290.0040.00416.53
7.4.280.0030.00316.41
7.4.270.0030.00316.45
7.4.260.0030.00313.16
7.4.250.0000.00716.55
7.4.240.0050.00316.53
7.4.230.0040.00416.24
7.4.220.0060.01216.39
7.4.210.0080.00616.55
7.4.200.0000.00716.63
7.4.190.0030.00316.39
7.4.160.0120.00316.42
7.4.150.0120.00617.40
7.4.140.0150.00317.86
7.4.130.0100.00616.47
7.4.120.0120.00716.54
7.4.110.0070.01116.47
7.4.100.0070.01116.42
7.4.90.0100.00716.49
7.4.80.0090.00919.37
7.4.70.0070.01016.49
7.4.60.0070.01016.63
7.4.50.0000.00916.43
7.4.40.0060.00922.52
7.4.30.0030.01316.40
7.4.00.0080.00814.86
7.3.330.0000.00613.31
7.3.320.0030.00313.33
7.3.310.0060.00316.12
7.3.300.0030.00316.35
7.3.290.0120.00316.45
7.3.280.0110.00716.42
7.3.270.0090.00917.40
7.3.260.0130.00718.24
7.3.250.0130.01016.44
7.3.240.0100.00716.48
7.3.230.0070.01016.65
7.3.210.0100.00716.43
7.3.200.0110.01019.39
7.3.190.0140.00316.65
7.3.180.0080.00816.37
7.3.170.0080.00816.58
7.3.160.0120.00316.76
7.3.120.0040.01114.93
7.2.330.0060.01216.68
7.2.320.0170.00016.22
7.2.310.0070.01416.71
7.2.300.0090.00916.66
7.2.290.0120.00916.68
7.2.110.0110.00416.55
7.2.100.0000.00816.46
7.2.90.0030.00916.73
7.2.80.0030.00916.66
7.2.70.0030.01016.98
7.2.60.0070.00816.92
7.2.50.0030.01016.91
7.2.40.0000.01117.00
7.2.30.0030.01016.81
7.2.20.0000.01417.09
7.2.10.0060.00316.67
7.2.00.0100.00017.06
7.1.230.0040.00415.80
7.1.220.0030.01115.81
7.1.210.0030.01015.57
7.1.200.0070.00315.73
7.1.190.0070.00715.55
7.1.180.0030.01015.59
7.1.170.0070.00415.70
7.1.160.0050.00215.89
7.1.150.0040.00415.69
7.1.140.0760.00315.70
7.1.130.0040.00715.52
7.1.120.0100.00515.73
7.1.110.0030.01015.85
7.1.100.0050.00815.73
7.1.90.0070.00715.63
7.1.80.0030.00915.72
7.1.70.0020.00916.22
7.1.60.0100.01017.69
7.1.50.0120.01216.27
7.1.40.0030.01016.00
7.1.30.0130.01015.69
7.1.20.0060.01215.75
7.1.10.0120.00415.48
7.1.00.0060.02019.06
7.0.310.0040.00715.40
7.0.300.0030.00915.26
7.0.290.0030.01015.38
7.0.280.0070.00015.36
7.0.270.0100.00315.57
7.0.260.0050.00915.45
7.0.250.0100.00315.16
7.0.240.0090.00615.55
7.0.230.0110.00515.33
7.0.220.0090.00615.54
7.0.210.0040.00815.48
7.0.200.0080.00416.18
7.0.190.0090.00415.22
7.0.180.0060.00815.24
7.0.170.0080.00615.40
7.0.160.0070.01015.20
7.0.150.0120.00315.52
7.0.140.0060.04118.82
7.0.130.0110.00015.38
7.0.120.0100.00215.40
7.0.110.0090.00315.27
7.0.100.0110.00415.57
7.0.90.0070.00415.33
7.0.80.0050.00915.23
7.0.70.0000.04718.61
7.0.60.0130.03718.40
7.0.50.0060.02718.78
7.0.40.0080.02616.70
7.0.30.0080.02316.75
7.0.20.0090.03716.77
7.0.10.0060.03616.82
7.0.00.0070.04616.78
5.6.380.0090.00614.32
5.6.370.0060.00613.98
5.6.360.0070.00714.18
5.6.350.0100.00314.44
5.6.340.0030.00614.55
5.6.330.0120.00414.27
5.6.320.0120.00314.15
5.6.310.0070.00414.49
5.6.300.0100.00314.24
5.6.290.0100.00214.78
5.6.280.0070.03917.79
5.6.270.0090.00514.45
5.6.260.0080.00414.43
5.6.250.0080.00514.29
5.6.240.0060.01014.35
5.6.230.0090.00914.32
5.6.220.0030.03817.47
5.6.210.0070.04017.69
5.6.200.0080.02317.77
5.6.190.0150.04017.83
5.6.180.0070.02617.82
5.6.170.0060.04517.83
5.6.160.0070.04517.61
5.6.150.0050.04317.61
5.6.140.0040.04717.56
5.6.130.0070.04317.84
5.6.120.0020.03917.56
5.6.110.0060.04517.73
5.6.100.0050.04517.66
5.6.90.0080.04617.66
5.6.80.0080.04317.39
5.6.70.0050.04317.47
5.6.60.0080.04717.42
5.6.50.0030.03817.31
5.6.40.0070.04017.35
5.6.30.0100.03817.49
5.6.20.0060.03217.38
5.6.10.0080.04217.26
5.6.00.0060.04717.29
5.5.380.0100.00611.00
5.5.370.0040.00710.97
5.5.360.0110.04015.96
5.5.350.0050.04615.61
5.5.340.0030.04615.95
5.5.330.0040.02715.95
5.5.320.0100.02016.00
5.5.310.0080.03815.94
5.5.300.0150.03615.86
5.5.290.0090.03815.96
5.5.280.0090.04116.20
5.5.270.0040.02716.10
5.5.260.0020.04515.91
5.5.250.0050.04715.98
5.5.240.0060.04415.69
5.5.230.0050.04315.76
5.5.220.0030.02915.74
5.5.210.0070.03915.68
5.5.200.0060.03415.67
5.5.190.0100.04015.64
5.5.180.0050.04115.71
5.5.170.0090.00614.12
5.5.160.0090.04015.53
5.5.150.0050.03715.73
5.5.140.0070.03715.60
5.5.130.0120.03315.75
5.5.120.0070.03715.70
5.5.110.0050.04515.65
5.5.100.0020.04115.55
5.5.90.0020.04215.65
5.5.80.0020.03915.42
5.5.70.0050.02215.62
5.5.60.0100.03515.43
5.5.50.0070.02115.72
5.5.40.0090.04015.35
5.5.30.0090.03915.64
5.5.20.0050.03315.54
5.5.10.0080.02015.49
5.5.00.0050.02115.64
5.4.450.0070.04115.26
5.4.440.0050.04215.37
5.4.430.0090.03815.14
5.4.420.0020.04515.19
5.4.410.0050.04015.40
5.4.400.0050.03514.95
5.4.390.0070.04214.99
5.4.380.0040.03914.90
5.4.370.0070.02215.08
5.4.360.0080.03015.09
5.4.350.0050.04015.07
5.4.340.0050.03315.10
5.4.330.0040.00411.04
5.4.320.0060.03115.02
5.4.310.0110.03315.17
5.4.300.0050.02215.10
5.4.290.0090.03615.10
5.4.280.0030.05015.11
5.4.270.0050.04015.14
5.4.260.0080.03715.19
5.4.250.0030.04215.24
5.4.240.0050.02214.91
5.4.230.0060.02115.11
5.4.220.0060.04015.15
5.4.210.0000.03915.05
5.4.200.0050.04015.00
5.4.190.0020.02714.92
5.4.180.0050.02215.16
5.4.170.0070.03814.86
5.4.160.0040.02215.15
5.4.150.0040.02015.08
5.4.140.0080.01713.63
5.4.130.0020.02213.70
5.4.120.0060.02213.59
5.4.110.0030.02313.78
5.4.100.0080.01713.81
5.4.90.0070.01813.87
5.4.80.0040.01913.57
5.4.70.0050.03013.69
5.4.60.0000.03113.84
5.4.50.0040.03713.77
5.4.40.0040.02313.56
5.4.30.0010.02313.75
5.4.20.0040.02013.74
5.4.10.0060.02013.78
5.4.00.0050.02213.52
5.3.290.0060.03712.53
5.3.280.0030.04412.54
5.3.270.0060.02012.63
5.3.260.0040.02112.48
5.3.250.0030.02112.63
5.3.240.0030.01912.55
5.3.230.0050.02312.55
5.3.220.0060.01812.58
5.3.210.0070.01812.38
5.3.200.0030.02012.56
5.3.190.0080.01712.49
5.3.180.0060.01812.63
5.3.170.0060.01812.50
5.3.160.0020.02812.55
5.3.150.0030.02112.44
5.3.140.0080.01612.57
5.3.130.0020.02212.63
5.3.120.0030.03112.47
5.3.110.0020.02112.57
5.3.100.0090.02212.34
5.3.90.0060.02212.25
5.3.80.0070.01712.14
5.3.70.0060.01812.23
5.3.60.0050.01812.24
5.3.50.0050.01812.26
5.3.40.0050.02012.15
5.3.30.0030.01912.13
5.3.20.0050.01812.03
5.3.10.0050.01611.90
5.3.00.0040.01911.87
5.2.170.0060.01210.91
5.2.160.0070.01710.90
5.2.150.0030.02010.91
5.2.140.0020.01710.93
5.2.130.0040.01510.92
5.2.120.0020.01710.78
5.2.110.0020.02010.93
5.2.100.0020.02410.92
5.2.90.0070.02010.92
5.2.80.0050.02310.88
5.2.70.0030.03310.85
5.2.60.0050.01210.86
5.2.50.0040.01510.80
5.2.40.0030.01310.89
5.2.30.0030.01310.85
5.2.20.0010.01410.80
5.2.10.0020.02210.79
5.2.00.0040.02310.76
5.1.60.0020.01210.47
5.1.50.0050.01010.47
5.1.40.0000.01610.48
5.1.30.0040.01310.47
5.1.20.0030.01610.47
5.1.10.0020.01510.47
5.1.00.0030.01210.47
5.0.50.0000.01310.47
5.0.40.0030.01210.47
5.0.30.0040.01610.47
5.0.20.0040.01510.47
5.0.10.0040.01010.47
5.0.00.0030.01610.47
4.4.90.0030.00810.47
4.4.80.0050.01310.47
4.4.70.0000.00910.47
4.4.60.0030.00610.47
4.4.50.0030.00710.47
4.4.40.0010.01310.47
4.4.30.0010.00810.47
4.4.20.0000.00910.47
4.4.10.0000.00910.47
4.4.00.0000.01410.47
4.3.110.0000.00910.47
4.3.100.0010.01110.47
4.3.90.0000.02110.47
4.3.80.0020.01310.47
4.3.70.0010.01010.47
4.3.60.0020.01010.47
4.3.50.0040.01710.47
4.3.40.0000.01710.47
4.3.30.0020.01710.47
4.3.20.0030.01810.47
4.3.10.0000.02110.47
4.3.00.0000.02010.47

preferences:
44.36 ms | 401 KiB | 5 Q