3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someclass { public function Blah($parameter) { $parameter = 'test'; $anon = function() use ($parameter) { if($parameter == 'test') $anon = "This works"; else $anon = "This doesn't work"; }; echo $anon(); } } $someclass = new someclass(); $someclass->Blah('test');

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.00416.58
8.3.60.0030.01418.30
8.3.50.0120.00522.03
8.3.40.0040.01118.67
8.3.30.0100.00319.08
8.3.20.0000.00820.08
8.3.10.0040.00423.70
8.3.00.0040.00417.89
8.2.180.0150.00416.75
8.2.170.0070.00722.96
8.2.160.0030.01020.39
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0030.00626.16
8.2.120.0080.00021.05
8.2.110.0100.00021.11
8.2.100.0040.00817.72
8.2.90.0040.00817.75
8.2.80.0050.00317.97
8.2.70.0040.00418.03
8.2.60.0090.00017.80
8.2.50.0000.00818.10
8.2.40.0040.00422.18
8.2.30.0050.00518.31
8.2.20.0030.00617.67
8.2.10.0000.00718.18
8.2.00.0040.00419.59
8.1.280.0120.00325.92
8.1.270.0030.00623.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00322.04
8.1.230.0040.00821.03
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0070.00317.22
8.1.180.0050.00318.10
8.1.170.0080.00018.64
8.1.160.0070.00021.91
8.1.150.0040.00418.89
8.1.140.0050.00317.49
8.1.130.0000.00717.86
8.1.120.0080.00017.35
8.1.110.0020.00517.52
8.1.100.0050.00217.34
8.1.90.0000.00717.46
8.1.80.0130.00017.36
8.1.70.0070.00017.43
8.1.60.0050.00517.63
8.1.50.0040.00417.42
8.1.40.0040.00417.52
8.1.30.0050.00317.50
8.1.20.0000.00717.55
8.1.10.0000.00817.54
8.1.00.0040.00417.40
8.0.300.0000.00719.89
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00316.86
8.0.260.0000.00617.10
8.0.250.0000.00716.91
8.0.240.0070.00416.85
8.0.230.0030.00316.89
8.0.220.0000.00916.85
8.0.210.0030.00316.91
8.0.200.0060.00016.98
8.0.190.0040.00416.91
8.0.180.0000.00816.93
8.0.170.0000.00716.82
8.0.160.0000.00716.84
8.0.150.0030.00316.73
8.0.140.0040.00716.81
8.0.130.0030.00313.31
8.0.120.0000.00816.73
8.0.110.0040.00316.91
8.0.100.0000.00716.85
8.0.90.0030.00316.69
8.0.80.0040.01116.89
8.0.70.0050.00316.71
8.0.60.0000.00816.71
8.0.50.0000.00816.93
8.0.30.0080.01216.98
8.0.20.0120.00917.40
8.0.10.0050.00317.01
8.0.00.0130.00416.78
7.4.330.0060.00015.16
7.4.320.0060.00016.46
7.4.300.0000.00616.48
7.4.290.0000.00716.49
7.4.280.0030.00616.44
7.4.270.0030.00316.48
7.4.260.0030.00313.25
7.4.250.0000.00816.42
7.4.240.0000.00716.55
7.4.230.0030.00316.62
7.4.220.0130.00616.64
7.4.210.0100.01016.52
7.4.200.0000.00716.34
7.4.160.0070.01016.43
7.4.150.0040.01417.40
7.4.140.0110.00717.86
7.4.130.0070.01016.58
7.4.120.0090.00816.58
7.4.110.0130.00316.52
7.4.100.0070.01016.52
7.4.90.0130.00816.51
7.4.80.0100.01019.39
7.4.70.0080.00816.36
7.4.60.0090.00916.59
7.4.50.0060.00316.39
7.4.40.0110.00716.56
7.4.30.0060.00916.62
7.4.00.0090.00315.04
7.3.330.0030.00313.33
7.3.320.0050.00013.25
7.3.310.0000.00716.17
7.3.300.0000.00716.22
7.3.290.0070.00716.25
7.3.280.0060.01016.30
7.3.270.0070.01117.40
7.3.260.0090.00916.23
7.3.250.0070.01016.40
7.3.240.0040.01416.46
7.3.230.0120.00916.61
7.3.210.0090.00916.43
7.3.200.0000.01819.39
7.3.190.0110.00616.59
7.3.180.0030.01216.34
7.3.170.0090.00916.63
7.3.160.0060.00916.18
7.3.120.0110.00314.54
7.3.00.0040.00816.54
7.2.330.0060.01216.70
7.2.320.0060.01216.68
7.2.310.0070.01016.66
7.2.300.0070.01016.67
7.2.290.0070.01016.82
7.2.130.0000.01416.64
7.2.120.0070.00416.65
7.2.110.0110.00716.60
7.2.100.0100.00316.91
7.2.90.0070.00916.39
7.2.80.0110.00617.02
7.2.70.0100.00617.11
7.2.60.0100.00716.96
7.2.50.0080.00316.73
7.2.40.0080.00817.05
7.2.30.0100.00716.79
7.2.20.0120.00416.92
7.2.10.0150.00317.00
7.2.00.0100.00318.14
7.1.250.0030.00915.71
7.1.240.0060.00615.76
7.1.230.0080.00415.86
7.1.220.0180.00015.69
7.1.210.0140.00415.65
7.1.200.0070.00615.71
7.1.190.0030.00615.40
7.1.180.0160.00015.73
7.1.170.0100.00715.60
7.1.160.0100.00715.65
7.1.150.0040.00715.89
7.1.140.0070.00715.76
7.1.130.0070.00315.62
7.1.120.0030.00715.59
7.1.110.0080.00015.83
7.1.100.0050.00916.91
7.1.90.0060.01015.45
7.1.80.0000.01215.46
7.1.70.0050.00716.28
7.1.60.0070.01217.72
7.1.50.0070.00816.13
7.1.40.0070.00715.64
7.1.30.0060.01015.70
7.1.20.0000.01515.85
7.1.10.0070.00715.70
7.1.00.0050.04318.91
7.0.330.0000.01015.08
7.0.320.0030.00914.91
7.0.310.0110.00715.34
7.0.300.0080.00415.36
7.0.290.0080.00415.40
7.0.280.0000.00815.41
7.0.270.0110.00315.20
7.0.260.0040.00815.08
7.0.250.0140.00315.27
7.0.240.0000.00715.34
7.0.230.0030.00915.32
7.0.220.0000.00715.19
7.0.210.0040.00414.97
7.0.200.0030.00516.05
7.0.190.0130.00315.14
7.0.180.0060.00615.37
7.0.170.0040.00415.38
7.0.160.0120.00415.40
7.0.150.0110.00415.34
7.0.140.0060.04018.60
7.0.130.0090.00315.26
7.0.120.0000.01015.14
7.0.110.0110.00015.42
7.0.100.0040.00715.49
7.0.90.0030.00715.23
7.0.80.0090.00615.13
7.0.70.0030.01215.14
7.0.60.0120.03317.72
7.0.50.0080.04316.64
7.0.40.0050.05016.77
7.0.30.0320.03816.63
7.0.20.0220.03116.65
7.0.10.0080.04816.50
7.0.00.0090.02416.70
5.6.380.0000.00914.18
5.6.370.0080.00814.50
5.6.360.0130.00014.02
5.6.350.0070.00314.45
5.6.340.0060.00614.10
5.6.330.0030.01214.06
5.6.320.0110.00313.76
5.6.310.0070.00714.32
5.6.300.0090.00314.13
5.6.290.0040.01114.44
5.6.280.0070.04017.68
5.6.270.0040.00814.01
5.6.260.0080.00514.23
5.6.250.0110.00014.21
5.6.240.0060.00314.04
5.6.230.0040.01114.21
5.6.220.0110.00414.23
5.6.210.0060.03517.54
5.6.200.0070.04716.07
5.6.190.0050.02817.42
5.6.180.1790.02617.38
5.6.170.0260.02017.54
5.6.160.0090.02917.33
5.6.150.0120.03216.38
5.6.140.0070.02216.35
5.6.130.0100.02316.38
5.6.120.0050.03817.72
5.6.110.0060.02317.64
5.6.100.0040.02417.61
5.6.90.0110.04017.77
5.6.80.0090.04117.34
5.6.70.1110.02217.35
5.6.60.0030.00914.01
5.6.50.0070.00414.18
5.6.40.0040.00714.30
5.6.30.0040.00814.02
5.6.20.0000.00814.04
5.6.10.0030.00614.06
5.6.00.0000.00814.15
5.5.380.0060.00611.11
5.5.370.0080.00510.90
5.5.360.0000.01110.92
5.5.350.0030.02515.83
5.5.340.0080.04114.52
5.5.330.0130.02315.71
5.5.320.0200.04215.93
5.5.310.0170.04615.78
5.5.300.0070.04214.68
5.5.290.0070.04514.56
5.5.280.0060.02315.94
5.5.270.0050.02215.87
5.5.260.0030.04716.06
5.5.250.0080.04315.80
5.5.240.0170.02515.50
5.5.230.0000.01010.93
5.5.220.0040.00411.24
5.5.210.0000.00711.09
5.5.200.0050.00010.98
5.5.190.0000.00511.19
5.5.180.0000.01111.10
5.5.170.0030.00311.18
5.5.160.0040.00411.13
5.5.150.0030.00610.90
5.5.140.0030.00711.25
5.5.130.0040.00411.14
5.5.120.0060.00311.32
5.5.110.0050.00311.18
5.5.100.0030.00311.30
5.5.90.0050.00010.90
5.5.80.0030.00710.90
5.5.70.0030.00611.23
5.5.60.0000.00811.18
5.5.50.0030.00711.20
5.5.40.0030.00310.90
5.5.30.0080.00411.04
5.5.20.0030.00711.30
5.5.10.0030.00711.19
5.5.00.0040.00711.16
5.4.450.0090.02915.23
5.4.440.0170.03515.03
5.4.430.0100.03115.22
5.4.420.0080.02315.10
5.4.410.0120.02514.97
5.4.400.0080.02315.06
5.4.390.0080.02915.15
5.4.380.0070.02415.02
5.4.370.0120.02015.01
5.4.360.0160.02815.07
5.4.350.0100.02015.00
5.4.340.0070.03515.05
5.4.330.0030.00611.07
5.4.320.0080.03415.07
5.4.310.0070.02915.08
5.4.300.0150.03215.14
5.4.290.0130.03514.88
5.4.280.0150.02015.23
5.4.270.0120.03715.08
5.4.260.0150.02115.06
5.4.250.0090.02415.10
5.4.240.0070.01814.90
5.4.230.0110.02114.99
5.4.220.0080.02315.06
5.4.210.0100.02014.95
5.4.200.0020.02715.13
5.4.190.0080.01515.01
5.4.180.0010.02614.94
5.4.170.0430.02115.11
5.4.160.1130.01515.05
5.4.150.0830.02214.94
5.4.140.0780.02413.73
5.4.130.0970.02013.75
5.4.120.0800.01813.70
5.4.110.0800.02013.76
5.4.100.0840.01913.75
5.4.90.0860.01713.72
5.4.80.0840.02113.82
5.4.70.0130.01713.75
5.4.60.0050.02313.62
5.4.50.0250.02513.78
5.4.40.0510.02013.66
5.4.30.0060.01913.53
5.4.20.0050.02013.60
5.4.10.0250.02713.72
5.4.00.0820.01913.53
5.3.290.0770.02312.78
5.3.280.0780.02212.70
5.3.270.0870.01712.71
5.3.260.0790.02112.70
5.3.250.0830.02012.74
5.3.240.0900.02612.82
5.3.230.0780.02312.75
5.3.220.0860.02312.69
5.3.210.0850.02112.69
5.3.200.0070.02712.73
5.3.190.0020.04112.78
5.3.180.0370.02312.73
5.3.170.0750.02212.73
5.3.160.0920.02412.75
5.3.150.0820.02012.72
5.3.140.0930.02312.73
5.3.130.0920.02512.78
5.3.120.0800.02112.72
5.3.110.0910.02812.72
5.3.100.0890.02612.51
5.3.90.0930.02312.41
5.3.80.0950.02312.54
5.3.70.0530.02112.57
5.3.60.0020.02612.41
5.3.50.0050.02212.38
5.3.40.0730.02312.39
5.3.30.0930.02012.41
5.3.20.0820.02512.30
5.3.10.0890.02612.28
5.3.00.0550.02012.22
5.2.170.0020.03511.00
5.2.160.0000.03610.98
5.2.150.0060.02511.01
5.2.140.0100.02011.13
5.2.130.0770.01811.11
5.2.120.0670.01511.03
5.2.110.0630.01910.93
5.2.100.0730.02410.96
5.2.90.0660.01611.00
5.2.80.0760.01511.00
5.2.70.0030.03510.97
5.2.60.0030.03010.93
5.2.50.0050.01710.95
5.2.40.0070.01810.90
5.2.30.0370.01510.89
5.2.20.0570.01210.88
5.2.10.0720.02310.92
5.2.00.0650.02210.83
5.1.60.0630.01510.41
5.1.50.0560.01610.56
5.1.40.0610.01610.39
5.1.30.0550.01210.62
5.1.20.0520.01710.67
5.1.10.0650.02010.52
5.1.00.0630.01610.44
5.0.50.0380.0209.71
5.0.40.0300.0149.60
5.0.30.0250.0199.60
5.0.20.0330.0119.63
5.0.10.0260.0149.54
5.0.00.0300.0149.53
4.4.90.0020.0099.14
4.4.80.0020.0179.14
4.4.70.0030.0179.14
4.4.60.0030.0089.14
4.4.50.0000.0219.14
4.4.40.0020.0279.14
4.4.30.0000.0139.14
4.4.20.0000.0139.14
4.4.10.0080.0119.14
4.4.00.0300.0149.14
4.3.110.0320.0129.14
4.3.100.0300.0159.14
4.3.90.0360.0139.14
4.3.80.0320.0169.14
4.3.70.0350.0139.14
4.3.60.0280.0089.14
4.3.50.0320.0129.14
4.3.40.0310.0119.14
4.3.30.0130.0089.14
4.3.20.0130.0099.14
4.3.10.0150.0089.14
4.3.00.0160.0079.14

preferences:
48.14 ms | 401 KiB | 5 Q