3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { const NAME = 'Serkan'; } class PhpSpec { public function __construct() { $name = 'NAME'; $func = function() use ($name) { return constant(get_class($this) . '::' . $name); }; $closure = $func->bindTo(new Person()); echo $closure(); } } $spe = new PhpSpec();

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.0190.00318.43
8.3.50.0060.00918.15
8.3.40.0130.00318.95
8.3.30.0150.00018.69
8.3.20.0000.00720.16
8.3.10.0080.00023.66
8.3.00.0080.00019.79
8.2.180.0140.00718.14
8.2.170.0100.00722.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00222.30
8.2.120.0080.00026.35
8.2.110.0060.00320.52
8.2.100.0120.00019.63
8.2.90.0080.00017.79
8.2.80.0040.00420.53
8.2.70.0080.00018.03
8.2.60.0040.00417.93
8.2.50.0000.00718.22
8.2.40.0000.00720.62
8.2.30.0050.00519.16
8.2.20.0000.00818.06
8.2.10.0000.00718.13
8.2.00.0070.00018.32
8.1.280.0120.00325.92
8.1.270.0050.00222.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.92
8.1.230.0040.00720.85
8.1.220.0080.00017.77
8.1.210.0000.00918.77
8.1.200.0040.00417.36
8.1.190.0030.00517.53
8.1.180.0030.00618.10
8.1.170.0040.00418.50
8.1.160.0040.00418.77
8.1.150.0000.00720.19
8.1.140.0030.00518.80
8.1.130.0000.00718.93
8.1.120.0000.00717.36
8.1.110.0000.00817.46
8.1.100.0040.00417.45
8.1.90.0000.00717.50
8.1.80.0030.00517.35
8.1.70.0000.00717.37
8.1.60.0040.00417.50
8.1.50.0040.00417.42
8.1.40.0060.00317.42
8.1.30.0080.00017.59
8.1.20.0030.00617.63
8.1.10.0000.00717.63
8.1.00.0060.00317.52
8.0.300.0030.00520.01
8.0.290.0040.00416.75
8.0.280.0000.00818.43
8.0.270.0070.00017.22
8.0.260.0040.00416.70
8.0.250.0000.00916.95
8.0.240.0000.00716.85
8.0.230.0070.00016.94
8.0.220.0030.00316.81
8.0.210.0040.00416.85
8.0.200.0000.00616.91
8.0.190.0030.00516.95
8.0.180.0000.00716.95
8.0.170.0030.00616.92
8.0.160.0000.00816.90
8.0.150.0070.00016.75
8.0.140.0040.00416.87
8.0.130.0070.00013.38
8.0.120.0070.00016.76
8.0.110.0000.00716.83
8.0.100.0070.00016.86
8.0.90.0000.00816.89
8.0.80.0070.01216.93
8.0.70.0000.00716.78
8.0.60.0040.00416.85
8.0.50.0040.00416.71
8.0.30.0080.00917.03
8.0.20.0080.01117.40
8.0.10.0030.00517.09
8.0.00.0100.01116.77
7.4.330.0030.00315.55
7.4.320.0000.00616.49
7.4.300.0030.00316.61
7.4.290.0040.00416.59
7.4.280.0030.00516.57
7.4.270.0040.00416.52
7.4.260.0030.00316.48
7.4.250.0020.00516.42
7.4.240.0070.00016.61
7.4.230.0050.00216.48
7.4.220.0000.00816.57
7.4.210.0040.01016.49
7.4.200.0030.00616.70
7.4.160.0050.01116.54
7.4.150.0060.01217.40
7.4.140.0090.00817.86
7.4.130.0030.01416.52
7.4.120.0120.00816.49
7.4.110.0040.01216.29
7.4.100.0030.01416.48
7.4.90.0090.00916.59
7.4.80.0160.00519.39
7.4.70.0060.01016.73
7.4.60.0090.01616.38
7.4.50.0090.00216.54
7.4.40.0100.00716.38
7.4.10.0040.01114.92
7.4.00.0080.00914.70
7.3.330.0020.00213.16
7.3.320.0060.00013.26
7.3.310.0050.00316.30
7.3.300.0000.00616.27
7.3.290.0000.00716.29
7.3.280.0090.00716.26
7.3.270.0120.00617.40
7.3.260.0040.01416.45
7.3.250.0080.01216.36
7.3.240.0140.00616.48
7.3.230.0140.00316.57
7.3.210.0100.00716.32
7.3.200.0130.00316.23
7.3.190.0110.01016.23
7.3.180.0110.00716.42
7.3.170.0190.00316.31
7.3.160.0130.00316.34
7.3.130.0040.01514.74
7.3.120.0070.00714.75
7.3.110.0070.01415.10
7.3.100.0070.01014.75
7.3.90.0030.00914.80
7.3.80.0070.00314.83
7.3.70.0040.00714.82
7.3.60.0060.00914.86
7.3.50.0090.00314.54
7.3.40.0110.00314.88
7.3.30.0060.00914.49
7.3.20.0030.01016.47
7.3.10.0080.00316.65
7.3.00.0120.00316.66
7.2.330.0120.00916.70
7.2.320.0180.00616.73
7.2.310.0060.01216.50
7.2.300.0080.01216.73
7.2.290.0120.00916.73
7.2.260.0070.01414.74
7.2.250.0160.00314.99
7.2.240.0060.00615.15
7.2.230.0090.00614.89
7.2.220.0070.01515.36
7.2.210.0080.01215.21
7.2.200.0040.01215.23
7.2.190.0130.00315.04
7.2.180.0060.01114.91
7.2.170.0090.00614.94
7.2.160.0000.01014.78
7.2.150.0090.00916.97
7.2.140.0030.01016.91
7.2.130.0110.00716.85
7.2.120.0000.01417.00
7.2.110.0060.00617.02
7.2.100.0110.00416.95
7.2.90.0040.01117.06
7.2.80.0060.00916.93
7.2.70.0150.00316.84
7.2.60.0040.01016.90
7.2.50.0060.00616.87
7.2.40.0060.01216.87
7.2.30.0070.01117.15
7.2.20.0050.01518.96
7.2.10.0050.01418.41
7.2.00.0080.01118.29
7.1.330.0060.00615.75
7.1.320.0050.00515.77
7.1.310.0070.00716.08
7.1.300.0110.00415.77
7.1.290.0030.01015.90
7.1.280.0090.00615.95
7.1.270.0070.00715.81
7.1.260.0060.00615.52
7.1.250.0090.00615.75
7.1.240.0070.00715.91
7.1.230.0100.00715.95
7.1.220.0070.01015.90
7.1.210.0070.00415.46
7.1.200.0090.00915.62
7.1.190.0030.01415.93
7.1.180.0080.00415.78
7.1.170.0050.00315.86
7.1.160.0080.00815.86
7.1.150.0040.01515.73
7.1.140.0050.01217.21
7.1.130.0100.00717.23
7.1.120.0070.01117.23
7.1.110.0030.01016.95
7.1.100.0050.01016.91
7.1.90.0020.01217.01
7.1.80.0080.00816.87
7.1.70.0110.00516.36
7.1.60.0150.01225.43
7.1.50.0150.00825.32
7.1.40.0120.01525.10
7.1.30.0150.00525.14
7.1.20.0170.01025.15
7.1.10.0080.00816.07
7.1.00.0020.01216.17
7.0.330.0040.01115.48
7.0.320.0040.01115.32
7.0.310.0040.01115.41
7.0.300.0000.00715.14
7.0.290.0040.01115.38
7.0.280.0070.01015.35
7.0.270.0030.00615.39
7.0.260.0030.00615.20
7.0.250.0030.00715.62
7.0.240.0060.00615.44
7.0.230.0060.00615.18
7.0.220.0080.00815.16
7.0.210.0000.01315.37
7.0.200.0000.01115.20
7.0.190.0070.01015.34
7.0.180.0060.01015.40
7.0.170.0090.00615.59
7.0.160.0080.00615.39
7.0.150.0060.00315.33
7.0.140.0060.00815.56
7.0.130.0030.01015.40
7.0.120.0070.00315.50
7.0.110.0100.00315.54
7.0.100.0080.00815.05
7.0.90.0030.01015.23
7.0.80.0060.00315.51
7.0.70.0040.00715.38
7.0.60.0100.00015.62
7.0.50.0070.00715.43
7.0.40.0030.01013.41
7.0.30.0070.00713.72
7.0.20.0040.00813.25
7.0.10.0030.00713.61
7.0.00.0030.00613.26
5.6.400.0030.00614.62
5.6.390.0060.01214.59
5.6.380.0030.01414.37
5.6.370.0000.01514.47
5.6.360.0090.00614.34
5.6.350.0040.01414.46
5.6.340.0000.01214.50
5.6.330.0000.00914.66
5.6.320.0060.00614.50
5.6.310.0060.01014.51
5.6.300.0030.00614.58
5.6.290.0130.00314.41
5.6.280.0040.01214.47
5.6.270.0090.00314.62
5.6.260.0030.00714.06
5.6.250.0030.01014.33
5.6.240.0030.00614.31
5.6.230.0030.00714.16
5.6.220.0030.01014.64
5.6.210.0060.00614.38
5.6.200.0000.01714.41
5.6.190.0040.01114.29
5.6.180.0060.00614.46
5.6.170.0000.00914.43
5.6.160.0090.00314.23
5.6.150.0030.01014.25
5.6.140.0060.00814.23
5.6.130.0000.01414.42
5.6.120.0040.00814.43
5.6.110.0030.00814.20
5.6.100.0030.01014.07
5.6.90.0040.01214.19
5.6.80.0070.00713.94
5.6.70.0070.00714.34
5.6.60.0100.00314.21
5.6.50.0060.00914.30
5.6.40.0040.01114.50
5.6.30.0060.00614.26
5.6.20.0030.00714.22
5.6.10.0080.00314.44
5.6.00.0030.01014.29

preferences:
65.75 ms | 401 KiB | 5 Q